From: Darren Tucker Date: Fri, 5 Sep 2025 07:55:33 +0000 (+1000) Subject: Create replacement time.h if needed. X-Git-Tag: V_10_1_P1~112 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cd9ba068e36b0f37374d2eba2d19dacc7ea9a167;p=thirdparty%2Fopenssh-portable.git Create replacement time.h if needed. Remove #ifdef HAVE_TIME_H wrapper. ok djm@ --- diff --git a/configure.ac b/configure.ac index 05a302e12..0d35f5d75 100644 --- a/configure.ac +++ b/configure.ac @@ -512,7 +512,6 @@ AC_CHECK_HEADERS([ \ sys/sysmacros.h \ sys/timers.h \ sys/vfs.h \ - time.h \ tmpdir.h \ ttyent.h \ ucred.h \ @@ -530,7 +529,7 @@ AC_CHECK_HEADERS([ \ # the equivalent file. This avoids having to wrap those includes in # '#ifdef HAVE_FOO_H'. If we create any such headers, add the path to includes. compatincludes=no -AC_CHECK_HEADERS([ifaddrs.h paths.h poll.h stdint.h sys/stat.h sys/time.h util.h], [], [ +AC_CHECK_HEADERS([ifaddrs.h paths.h poll.h stdint.h sys/stat.h sys/time.h time.h util.h], [], [ compatincludes="`pwd`/openbsd-compat/include" header="$compatincludes/$ac_header" dir=`dirname "$header"` diff --git a/logintest.c b/logintest.c index 6ee1cdc23..1056bba0e 100644 --- a/logintest.c +++ b/logintest.c @@ -41,9 +41,7 @@ #include #include #include -#ifdef HAVE_TIME_H #include -#endif #include "loginrec.h" diff --git a/misc-agent.c b/misc-agent.c index 5ea91ebe3..07c8fb136 100644 --- a/misc-agent.c +++ b/misc-agent.c @@ -28,9 +28,7 @@ #include #include #include -#ifdef HAVE_TIME_H -# include -#endif +#include #include #include "digest.h"