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.
This commit is contained in:
Darren Tucker 2020-11-20 17:16:51 +11:00
parent 41935882f4
commit 9880f3480f
1 changed files with 1 additions and 1 deletions

View File

@ -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], [],