diff options
author | Darren Tucker <dtucker@dtucker.net> | 2020-11-20 17:16:51 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2020-11-20 17:27:46 +1100 |
commit | 9880f3480f9768897f3b8e714d5317fb993bc5b3 (patch) | |
tree | ceafc419f17a9db0fb5c024a022b03e4c2db30f9 /configure.ac | |
parent | 41935882f4e82de60dbd6e033eabe79e1b963518 (diff) |
Restore correct flags during localtime_r check.
We were restoring the wrong thing CPPFLAGS (we used CFLAGS) for any
platform that doesn't have localtime_r.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 9bf28ca5..35d1aca9 100644 --- a/configure.ac +++ b/configure.ac @@ -1992,7 +1992,7 @@ AC_SEARCH_LIBS([clock_gettime], [rt], dnl check if we need -D_REENTRANT for localtime_r declaration. AC_CHECK_DECL([localtime_r], [], - [ saved_CPPFLAGS="$CFLAGS" + [ saved_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS -D_REENTRANT" unset ac_cv_have_decl_localtime_r AC_CHECK_DECL([localtime_r], [], |