summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Kokot <peterkokot@gmail.com>2019-07-01 13:20:35 +0200
committerPeter Kokot <peterkokot@gmail.com>2019-07-01 13:21:28 +0200
commite558ee79992ed2cb6ce17ad2d81c4d25e6c394f3 (patch)
tree4037f6646ad635387c0f2f50d79540859e3f8b78
parentc70d9cdb1163e6df9b1ee8fe99a3deb921d3c8cf (diff)
downloadphp-git-e558ee79992ed2cb6ce17ad2d81c4d25e6c394f3.tar.gz
Remove not needed checks for functions
The following functions don't need to be checked anymore since the they are not used across the code or the symbols aren't used anymore: - cuserid (not used) - lrand48 (not used and removed via 6d6ef7aacc7f9b17709d2f93b70b359c75011f89) - random (check is not used) - srand48 (not used) - srandom (not used) - strdup (check is not used) and the unused check symbols: - HAVE_CUSERID - HAVE_LRAND48 - HAVE_RANDOM - HAVE_SRAND48 - HAVE_SRANDOM - HAVE_STRDUP Closes GH-4338
-rw-r--r--configure.ac6
-rw-r--r--win32/build/config.w32.h.in2
2 files changed, 0 insertions, 8 deletions
diff --git a/configure.ac b/configure.ac
index 5a230200ca..c1ad6907cc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -588,7 +588,6 @@ alphasort \
asctime_r \
chroot \
ctime_r \
-cuserid \
crypt \
explicit_memset \
flock \
@@ -621,7 +620,6 @@ link \
localtime_r \
lockf \
lchown \
-lrand48 \
mbrlen \
memmove \
mkstemp \
@@ -632,7 +630,6 @@ poll \
ptsname \
putenv \
realpath \
-random \
rand_r \
scandir \
setitimer \
@@ -642,13 +639,10 @@ setvbuf \
shutdown \
sigprocmask \
sin \
-srand48 \
-srandom \
statfs \
statvfs \
std_syslog \
strcasecmp \
-strdup \
strerror \
strfmon \
strnlen \
diff --git a/win32/build/config.w32.h.in b/win32/build/config.w32.h.in
index 1b197c19d7..1aeea7b629 100644
--- a/win32/build/config.w32.h.in
+++ b/win32/build/config.w32.h.in
@@ -80,7 +80,6 @@
#endif
#define HAVE_SHUTDOWN 1
#define HAVE_STRCASECMP 1
-#define HAVE_STRDUP 1
#define HAVE_STRERROR 1
#define HAVE_TEMPNAM 1
#define HAVE_UTIME 1
@@ -98,7 +97,6 @@
#undef HAVE_KILL
#define HAVE_GETPID 1
#define HAVE_LIBM 1
-#define HAVE_CUSERID 0
#undef HAVE_RINT
#define SIZEOF_SHORT 2
/* int and long are stll 32bit in 64bit compiles */