mirror of
https://github.com/openssh/openssh-portable.git
synced 2026-01-12 00:04:08 +08:00
Create replacement time.h if needed.
Remove #ifdef HAVE_TIME_H wrapper. ok djm@
This commit is contained in:
@@ -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"`
|
||||
|
||||
@@ -41,9 +41,7 @@
|
||||
#include <string.h>
|
||||
#include <pwd.h>
|
||||
#include <netdb.h>
|
||||
#ifdef HAVE_TIME_H
|
||||
#include <time.h>
|
||||
#endif
|
||||
|
||||
#include "loginrec.h"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user