From e558ee79992ed2cb6ce17ad2d81c4d25e6c394f3 Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Mon, 1 Jul 2019 13:20:35 +0200 Subject: [PATCH] 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 --- configure.ac | 6 ------ win32/build/config.w32.h.in | 2 -- 2 files changed, 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 */ -- 2.50.1