summaryrefslogtreecommitdiff
path: root/sapi/cli/php_cli_server.c
diff options
context:
space:
mode:
authorPeter Kokot <peterkokot@gmail.com>2018-09-18 19:26:19 +0200
committerPeter Kokot <peterkokot@gmail.com>2018-09-21 14:10:30 +0200
commita1b5698d4e3aa8514752b1fdc9a001952f984398 (patch)
tree467d5cce486ea6bf692b7af49ffd0394116a1630 /sapi/cli/php_cli_server.c
parentc1b649d4488590235899f02489f85551d1bbe24b (diff)
downloadphp-git-a1b5698d4e3aa8514752b1fdc9a001952f984398.tar.gz
Remove HAVE_TIME_H
The `<time.h>` header file is part of the standard C89 headers [1] and on current systems can be included unconditionally. Since PHP requires at least C89 or greater, the `HAVE_TIME_H` symbol defined by Autoconf in ext/pdo_sqlite/config.m4 [2] can be ommitted and simplifed. Additionally, since PHP didn't define `HAVE_TIME_H` prior in the configure.ac the occurrence of this symbol in cli can be removed. 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
Diffstat (limited to 'sapi/cli/php_cli_server.c')
-rw-r--r--sapi/cli/php_cli_server.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sapi/cli/php_cli_server.c b/sapi/cli/php_cli_server.c
index 5386aa54c6..bcbbab3c01 100644
--- a/sapi/cli/php_cli_server.c
+++ b/sapi/cli/php_cli_server.c
@@ -37,10 +37,6 @@
#include <unixlib/local.h>
#endif
-
-#if HAVE_TIME_H
-#include <time.h>
-#endif
#if HAVE_SYS_TIME_H
#include <sys/time.h>
#endif