]> granicus.if.org Git - php/commitdiff
Remove not needed checks for functions
authorPeter Kokot <peterkokot@gmail.com>
Mon, 1 Jul 2019 11:20:35 +0000 (13:20 +0200)
committerPeter Kokot <peterkokot@gmail.com>
Mon, 1 Jul 2019 11:21:28 +0000 (13:21 +0200)
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

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

index 5a230200cac2f84b937528e85989ed46a3448f3b..c1ad6907ccdd95d77f60f42c5e40a96af3827ea2 100644 (file)
@@ -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 \
index 1b197c19d7eebab0410a8f4a59beb56f9bc8621c..1aeea7b62975e45db507504bc4107ecbab0e2d3e 100644 (file)
@@ -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 */