From e92603289aaf05649e3e66464fa5363dae714fe0 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Fri, 18 Jun 2021 10:10:51 +0200 Subject: [PATCH] configure/cmake: remove unused define HAVE_PERROR Closes #7276 --- CMake/Platforms/WindowsCache.cmake | 1 - CMakeLists.txt | 1 - lib/config-amigaos.h | 1 - lib/config-os400.h | 3 --- lib/config-plan9.h | 1 - lib/config-riscos.h | 3 --- lib/config-tpf.h | 3 --- lib/config-vxworks.h | 3 --- lib/config-win32.h | 3 --- lib/config-win32ce.h | 3 --- 10 files changed, 22 deletions(-) diff --git a/CMake/Platforms/WindowsCache.cmake b/CMake/Platforms/WindowsCache.cmake index 0c96cfafb..8f92cbd79 100644 --- a/CMake/Platforms/WindowsCache.cmake +++ b/CMake/Platforms/WindowsCache.cmake @@ -88,7 +88,6 @@ if(NOT UNIX) set(HAVE_INET_ADDR 1) set(HAVE_INET_NTOA 1) set(HAVE_INET_NTOA_R 0) - set(HAVE_PERROR 1) set(HAVE_CLOSESOCKET 1) set(HAVE_SETVBUF 0) set(HAVE_SIGSETJMP 0) diff --git a/CMakeLists.txt b/CMakeLists.txt index 449ea0f04..6ad3e0ada 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1045,7 +1045,6 @@ check_symbol_exists(strtoll "${CURL_INCLUDES}" HAVE_STRTOLL) check_symbol_exists(_strtoi64 "${CURL_INCLUDES}" HAVE__STRTOI64) check_symbol_exists(strerror_r "${CURL_INCLUDES}" HAVE_STRERROR_R) check_symbol_exists(siginterrupt "${CURL_INCLUDES}" HAVE_SIGINTERRUPT) -check_symbol_exists(perror "${CURL_INCLUDES}" HAVE_PERROR) check_symbol_exists(getaddrinfo "${CURL_INCLUDES}" HAVE_GETADDRINFO) check_symbol_exists(freeaddrinfo "${CURL_INCLUDES}" HAVE_FREEADDRINFO) check_symbol_exists(pipe "${CURL_INCLUDES}" HAVE_PIPE) diff --git a/lib/config-amigaos.h b/lib/config-amigaos.h index 15d5b7aa8..fc30cb863 100644 --- a/lib/config-amigaos.h +++ b/lib/config-amigaos.h @@ -49,7 +49,6 @@ #define HAVE_OPENSSL_RSA_H 1 #define HAVE_OPENSSL_SSL_H 1 #define HAVE_OPENSSL_X509_H 1 -#define HAVE_PERROR 1 #define HAVE_PWD_H 1 #define HAVE_RAND_EGD 1 #define HAVE_RAND_STATUS 1 diff --git a/lib/config-os400.h b/lib/config-os400.h index e48b4ba60..3f5d9c5b3 100644 --- a/lib/config-os400.h +++ b/lib/config-os400.h @@ -223,9 +223,6 @@ /* Define if you have the header file. */ #undef HAVE_PEM_H -/* Define if you have the `perror' function. */ -#define HAVE_PERROR - /* Define if you have the header file. */ #define HAVE_PWD_H diff --git a/lib/config-plan9.h b/lib/config-plan9.h index dcc5c3124..54d081f51 100644 --- a/lib/config-plan9.h +++ b/lib/config-plan9.h @@ -134,7 +134,6 @@ #define HAVE_OPENSSL_SSL_H 1 #define HAVE_OPENSSL_X509_H 1 -#define HAVE_PERROR 1 #define HAVE_PIPE 1 #define HAVE_POLL 1 #define HAVE_POLL_FINE 1 diff --git a/lib/config-riscos.h b/lib/config-riscos.h index 45cdfb682..413a36e33 100644 --- a/lib/config-riscos.h +++ b/lib/config-riscos.h @@ -215,9 +215,6 @@ /* Define if you have the header file. */ #undef HAVE_PEM_H -/* Define if you have the `perror' function. */ -#undef HAVE_PERROR - /* Define if you have the header file. */ #undef HAVE_PWD_H diff --git a/lib/config-tpf.h b/lib/config-tpf.h index 48f012b73..a4619ad44 100644 --- a/lib/config-tpf.h +++ b/lib/config-tpf.h @@ -313,9 +313,6 @@ /* #undef HAVE_PEM_H */ #define HAVE_PEM_H 1 -/* Define to 1 if you have the `perror' function. */ -#define HAVE_PERROR 1 - /* Define to 1 if you have the `pipe' function. */ #define HAVE_PIPE 1 diff --git a/lib/config-vxworks.h b/lib/config-vxworks.h index 4436dcb88..9774d5aba 100644 --- a/lib/config-vxworks.h +++ b/lib/config-vxworks.h @@ -388,9 +388,6 @@ /* Define to 1 if you have the header file. */ /* #undef HAVE_PEM_H */ -/* Define to 1 if you have the `perror' function. */ -#define HAVE_PERROR 1 - /* Define to 1 if you have the `pipe' function. */ #define HAVE_PIPE 1 diff --git a/lib/config-win32.h b/lib/config-win32.h index a748d2e45..d81a08298 100644 --- a/lib/config-win32.h +++ b/lib/config-win32.h @@ -209,9 +209,6 @@ /* Define if you have a working ioctlsocket FIONBIO function. */ #define HAVE_IOCTLSOCKET_FIONBIO 1 -/* Define if you have the perror function. */ -#define HAVE_PERROR 1 - /* Define if you have the RAND_screen function when using SSL. */ #define HAVE_RAND_SCREEN 1 diff --git a/lib/config-win32ce.h b/lib/config-win32ce.h index 077eec066..8bee4f709 100644 --- a/lib/config-win32ce.h +++ b/lib/config-win32ce.h @@ -166,9 +166,6 @@ /* Define if you have a working ioctlsocket FIONBIO function. */ #define HAVE_IOCTLSOCKET_FIONBIO 1 -/* Define if you have the perror function. */ -#define HAVE_PERROR 1 - /* Define if you have the RAND_screen function when using SSL */ #define HAVE_RAND_SCREEN 1