diff options
author | Peter Kokot <peterkokot@gmail.com> | 2019-07-08 12:46:51 +0200 |
---|---|---|
committer | Peter Kokot <peterkokot@gmail.com> | 2019-07-08 12:46:51 +0200 |
commit | 550c2aa89b97b07582773f22b9a52466d8584ab8 (patch) | |
tree | bcbab917777846f9c57a5565e75576a86ec4df5c | |
parent | f002761e08b928f17b16fb7bf7885294f4128415 (diff) | |
download | php-git-550c2aa89b97b07582773f22b9a52466d8584ab8.tar.gz |
Remove C89 checks for signal.h and strerror
These are part of the C89 and on today's systems not needed to be
checked anymore. This removes symbols HAVE_SIGNAL and HAVE_STRERROR.
- http://port70.net/~nsz/c/c89/c89-draft.html
- locale.h is also part of C89 but will be removed per request in PHP 8
-rw-r--r-- | configure.ac | 3 | ||||
-rw-r--r-- | win32/build/config.w32.h.in | 2 |
2 files changed, 1 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index 4f03e74cdf..36bfc9e020 100644 --- a/configure.ac +++ b/configure.ac @@ -416,6 +416,7 @@ dnl Then headers. dnl ---------------------------------------------------------------------------- dnl QNX requires unix.h to allow functions in libunix to work properly. +dnl locale.h is checked for supporting old code in extensions such as imagick. AC_CHECK_HEADERS([ \ inttypes.h \ stdint.h \ @@ -440,7 +441,6 @@ netdb.h \ poll.h \ pwd.h \ resolv.h \ -signal.h \ strings.h \ syslog.h \ sysexits.h \ @@ -642,7 +642,6 @@ statfs \ statvfs \ std_syslog \ strcasecmp \ -strerror \ strfmon \ strnlen \ strptime \ diff --git a/win32/build/config.w32.h.in b/win32/build/config.w32.h.in index 1aeea7b629..7a12baec1b 100644 --- a/win32/build/config.w32.h.in +++ b/win32/build/config.w32.h.in @@ -62,7 +62,6 @@ #undef HAVE_FLOCK #define HAVE_ALLOCA 1 #undef HAVE_SYS_TIME_H -#define HAVE_SIGNAL_H 1 #undef HAVE_STRUCT_STAT_ST_BLKSIZE #undef HAVE_STRUCT_STAT_ST_BLOCKS #define HAVE_STRUCT_STAT_ST_RDEV 1 @@ -80,7 +79,6 @@ #endif #define HAVE_SHUTDOWN 1 #define HAVE_STRCASECMP 1 -#define HAVE_STRERROR 1 #define HAVE_TEMPNAM 1 #define HAVE_UTIME 1 #undef HAVE_DIRENT_H |