Skip to content

Commit 550c2aa

Browse files
committed
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
1 parent f002761 commit 550c2aa

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

configure.ac

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,7 @@ dnl Then headers.
416416
dnl ----------------------------------------------------------------------------
417417

418418
dnl QNX requires unix.h to allow functions in libunix to work properly.
419+
dnl locale.h is checked for supporting old code in extensions such as imagick.
419420
AC_CHECK_HEADERS([ \
420421
inttypes.h \
421422
stdint.h \
@@ -440,7 +441,6 @@ netdb.h \
440441
poll.h \
441442
pwd.h \
442443
resolv.h \
443-
signal.h \
444444
strings.h \
445445
syslog.h \
446446
sysexits.h \
@@ -642,7 +642,6 @@ statfs \
642642
statvfs \
643643
std_syslog \
644644
strcasecmp \
645-
strerror \
646645
strfmon \
647646
strnlen \
648647
strptime \

win32/build/config.w32.h.in

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@
6262
#undef HAVE_FLOCK
6363
#define HAVE_ALLOCA 1
6464
#undef HAVE_SYS_TIME_H
65-
#define HAVE_SIGNAL_H 1
6665
#undef HAVE_STRUCT_STAT_ST_BLKSIZE
6766
#undef HAVE_STRUCT_STAT_ST_BLOCKS
6867
#define HAVE_STRUCT_STAT_ST_RDEV 1
@@ -80,7 +79,6 @@
8079
#endif
8180
#define HAVE_SHUTDOWN 1
8281
#define HAVE_STRCASECMP 1
83-
#define HAVE_STRERROR 1
8482
#define HAVE_TEMPNAM 1
8583
#define HAVE_UTIME 1
8684
#undef HAVE_DIRENT_H

0 commit comments

Comments
 (0)