Skip to content

Commit b132b7a

Browse files
authored
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
1 parent fde4386 commit b132b7a

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

Zend/zend_hrtime.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#ifdef HAVE_UNISTD_H
2525
# include <unistd.h>
2626
#endif
27-
#ifdef HAVE_TIME_H
27+
#ifndef PHP_WIN32
2828
# include <time.h>
2929
#endif
3030

configure.ac

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,6 @@ dirent.h \
398398
sys/param.h \
399399
sys/types.h \
400400
sys/time.h \
401-
time.h \
402401
netinet/in.h \
403402
alloca.h \
404403
arpa/inet.h \

0 commit comments

Comments
 (0)