13
0

Fix localtime_r check (#9554)

This commit is contained in:
Robin Gareus 2023-11-28 17:04:16 +01:00
parent 5138d174cb
commit a8c26dbfa4
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -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 <time.h>\n int main(void) { return localtime_r(NULL, NULL); }\n",
fragment = "#include <time.h>\n int main(void) { return NULL == localtime_r(NULL, NULL); }\n",
define_name='HAVE_LOCALTIME_R', execute = False, mandatory=False)
# Boost headers