[openssh-commits] [openssh] 08/11: Create replacement time.h if needed.
git+noreply at mindrot.org
git+noreply at mindrot.org
Fri Sep 5 18:10:28 AEST 2025
This is an automated email from the git hooks/post-receive script.
dtucker pushed a commit to branch master
in repository openssh.
commit cd9ba068e36b0f37374d2eba2d19dacc7ea9a167
Author: Darren Tucker <dtucker at dtucker.net>
AuthorDate: Fri Sep 5 17:55:33 2025 +1000
Create replacement time.h if needed.
Remove #ifdef HAVE_TIME_H wrapper. ok djm@
---
configure.ac | 3 +--
logintest.c | 2 --
misc-agent.c | 4 +---
3 files changed, 2 insertions(+), 7 deletions(-)
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 <string.h>
#include <pwd.h>
#include <netdb.h>
-#ifdef HAVE_TIME_H
#include <time.h>
-#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 <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"
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list