Remove check for time.h and HAVE_TIME_H (#11726)

The `<time.h>` header file is part of the standard C89 headers [1] and
on current systems can be included unconditionally.

The conditional include based on Windows is there so the win32/time.h
can be included on other places when needed.

Refs:
[1] https://port70.net/~nsz/c/c89/c89-draft.html#4.1.2
[2] https://git.savannah.gnu.org/cgit/autoconf.git/tree/lib/autoconf/headers.m4
This commit is contained in:
Peter Kokot 2023-07-20 09:38:53 +02:00 committed by GitHub
parent fde4386648
commit b132b7ab7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

@ -24,7 +24,7 @@
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#ifdef HAVE_TIME_H
#ifndef PHP_WIN32
# include <time.h>
#endif

View File

@ -398,7 +398,6 @@ dirent.h \
sys/param.h \
sys/types.h \
sys/time.h \
time.h \
netinet/in.h \
alloca.h \
arpa/inet.h \