mirror of git://anongit.mindrot.org/openssh.git
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:
parent
41935882f4
commit
9880f3480f
|
@ -1992,7 +1992,7 @@ AC_SEARCH_LIBS([clock_gettime], [rt],
|
||||||
|
|
||||||
dnl check if we need -D_REENTRANT for localtime_r declaration.
|
dnl check if we need -D_REENTRANT for localtime_r declaration.
|
||||||
AC_CHECK_DECL([localtime_r], [],
|
AC_CHECK_DECL([localtime_r], [],
|
||||||
[ saved_CPPFLAGS="$CFLAGS"
|
[ saved_CPPFLAGS="$CPPFLAGS"
|
||||||
CPPFLAGS="$CPPFLAGS -D_REENTRANT"
|
CPPFLAGS="$CPPFLAGS -D_REENTRANT"
|
||||||
unset ac_cv_have_decl_localtime_r
|
unset ac_cv_have_decl_localtime_r
|
||||||
AC_CHECK_DECL([localtime_r], [],
|
AC_CHECK_DECL([localtime_r], [],
|
||||||
|
|
Loading…
Reference in New Issue