From 550c2aa89b97b07582773f22b9a52466d8584ab8 Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Mon, 8 Jul 2019 12:46:51 +0200 Subject: [PATCH] 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 --- configure.ac | 3 +-- win32/build/config.w32.h.in | 2 -- 2 files changed, 1 insertion(+), 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 -- 2.40.0