diff options
author | Darren Tucker <dtucker@dtucker.net> | 2020-11-20 07:16:51 +0100 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2020-11-20 07:27:46 +0100 |
commit | 9880f3480f9768897f3b8e714d5317fb993bc5b3 (patch) | |
tree | ceafc419f17a9db0fb5c024a022b03e4c2db30f9 /configure.ac | |
parent | upstream: When doing an sftp recursive upload or download of a (diff) | |
download | openssh-9880f3480f9768897f3b8e714d5317fb993bc5b3.tar.xz openssh-9880f3480f9768897f3b8e714d5317fb993bc5b3.zip |
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 '')
-rw-r--r-- | configure.ac | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 9bf28ca58..35d1aca9f 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], [], |