mirror of
https://github.com/php/php-src.git
synced 2024-11-27 20:03:40 +08:00
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:
parent
fde4386648
commit
b132b7ab7e
@ -24,7 +24,7 @@
|
||||
#ifdef HAVE_UNISTD_H
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
#ifdef HAVE_TIME_H
|
||||
#ifndef PHP_WIN32
|
||||
# include <time.h>
|
||||
#endif
|
||||
|
||||
|
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user