Skip to content

Commit 067c254

Browse files
committed
Remove check for time.h and HAVE_TIME_H
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 8718fce commit 067c254

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Zend/zend_hrtime.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
#ifdef HAVE_UNISTD_H
2525
# include <unistd.h>
2626
#endif
27-
#ifdef HAVE_TIME_H
27+
28+
#ifndef PHP_WIN32
2829
# include <time.h>
2930
#endif
3031

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)