]> granicus.if.org Git - php/commitdiff
Remove C89 checks for signal.h and strerror
authorPeter Kokot <peterkokot@gmail.com>
Mon, 8 Jul 2019 10:46:51 +0000 (12:46 +0200)
committerPeter Kokot <peterkokot@gmail.com>
Mon, 8 Jul 2019 10:46:51 +0000 (12:46 +0200)
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

configure.ac
win32/build/config.w32.h.in

index 4f03e74cdf65bf3d7205614bc2fa769706191d73..36bfc9e020459f995a3f93fa565d90a71b21d6c7 100644 (file)
@@ -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 \
index 1aeea7b62975e45db507504bc4107ecbab0e2d3e..7a12baec1b800d1178652b0996ad6730ccf526b5 100644 (file)
@@ -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