]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Create replacement time.h if needed.
authorDarren Tucker <dtucker@dtucker.net>
Fri, 5 Sep 2025 07:55:33 +0000 (17:55 +1000)
committerDarren Tucker <dtucker@dtucker.net>
Fri, 5 Sep 2025 07:55:33 +0000 (17:55 +1000)
Remove #ifdef HAVE_TIME_H wrapper.  ok djm@

configure.ac
logintest.c
misc-agent.c

index 05a302e12d2d774fbc1aea33550fd9de79b25528..0d35f5d750707f4d726439ae56ec45867305bdc9 100644 (file)
@@ -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"`
index 6ee1cdc23645d1e9ce725a65dc325278607caea5..1056bba0e73a5207bda3ac5d6d208ea436880202 100644 (file)
@@ -41,9 +41,7 @@
 #include <string.h>
 #include <pwd.h>
 #include <netdb.h>
-#ifdef HAVE_TIME_H
 #include <time.h>
-#endif
 
 #include "loginrec.h"
 
index 5ea91ebe3fbc03e3862200a344274085cfee4e17..07c8fb136ec4408c15b6da41afa446a9c354de4b 100644 (file)
@@ -28,9 +28,7 @@
 #include <netdb.h>
 #include <stdlib.h>
 #include <string.h>
-#ifdef HAVE_TIME_H
-# include <time.h>
-#endif
+#include <time.h>
 #include <unistd.h>
 
 #include "digest.h"