From a8c26dbfa4e765e40bbf741637a3e383eebd770a Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 28 Nov 2023 17:04:16 +0100 Subject: [PATCH] Fix localtime_r check (#9554) --- libs/pbd/wscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/pbd/wscript b/libs/pbd/wscript index 06b285c79d..df92345d40 100644 --- a/libs/pbd/wscript +++ b/libs/pbd/wscript @@ -115,7 +115,7 @@ def configure(conf): define_name='HAVE_GETMNTENT', execute = False, mandatory=False) conf.check_cc( msg="Checking for function 'localtime_r' in time.h", - fragment = "#include \n int main(void) { return localtime_r(NULL, NULL); }\n", + fragment = "#include \n int main(void) { return NULL == localtime_r(NULL, NULL); }\n", define_name='HAVE_LOCALTIME_R', execute = False, mandatory=False) # Boost headers