summaryrefslogtreecommitdiff
path: root/ext/standard/crypt.c
diff options
context:
space:
mode:
authorPeter Kokot <peterkokot@gmail.com>2018-08-26 06:21:04 +0200
committerPeter Kokot <peterkokot@gmail.com>2018-08-29 21:22:47 +0200
commitcbc785dc8c89a5ff085909e555d677d4d8d7c9a1 (patch)
tree4420f9a50dd115411059929388327bed20f0946c /ext/standard/crypt.c
parent02294f0c84740a2c3fd2d13a4a66544717d778bb (diff)
downloadphp-git-cbc785dc8c89a5ff085909e555d677d4d8d7c9a1.tar.gz
Remove AC_STRUCT_TM macro
Autoconf 2.59d (released in 2006) [1] started promoting several macros as not relevant for newer systems anymore, including the `AC_STRUCT_TM`. This macro checks if `struct tm` is defined in either `<sys/time.h>` or `<time.h>` and defines the `TM_IN_SYS_TIME` symbol accordingly. This check was relevant in times before the C89 for some embedded systems, microcontrollers or very old systems. For newer systems it can be avoided and the `<time.h>` should be included instead since current systems should be well supported by now. [2] Since PHP requires at least C89, this patch removes the obsolescent call and time.h checks. Refs: - [1]: http://git.savannah.gnu.org/cgit/autoconf.git/tree/NEWS - [2]: https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Particular-Structures.html
Diffstat (limited to 'ext/standard/crypt.c')
-rw-r--r--ext/standard/crypt.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/ext/standard/crypt.c b/ext/standard/crypt.c
index 64ad0c1435..cc9597a28e 100644
--- a/ext/standard/crypt.c
+++ b/ext/standard/crypt.c
@@ -37,11 +37,7 @@
# include <crypt.h>
# endif
#endif
-#if TM_IN_SYS_TIME
-#include <sys/time.h>
-#else
#include <time.h>
-#endif
#if HAVE_STRING_H
#include <string.h>
#else