summaryrefslogtreecommitdiff
path: root/CMake
diff options
context:
space:
mode:
authorGergely Nagy <ngg@tresorit.com>2021-06-18 10:16:16 +0200
committerDaniel Stenberg <daniel@haxx.se>2021-06-18 13:52:18 +0200
commitf471efa78c64e405b61a195f072f8b759905f43f (patch)
tree697e5d4bf542f6b37cc7b873015ff26bfd0fc05c /CMake
parente92603289aaf05649e3e66464fa5363dae714fe0 (diff)
downloadcurl-f471efa78c64e405b61a195f072f8b759905f43f.tar.gz
configure/cmake: remove checks for unused inet_ntoa and inet_ntoa_r
Closes #7276
Diffstat (limited to 'CMake')
-rw-r--r--CMake/CurlTests.c31
-rw-r--r--CMake/Platforms/WindowsCache.cmake4
2 files changed, 0 insertions, 35 deletions
diff --git a/CMake/CurlTests.c b/CMake/CurlTests.c
index 2fcce1bb3..9c278ec50 100644
--- a/CMake/CurlTests.c
+++ b/CMake/CurlTests.c
@@ -214,37 +214,6 @@ if (sizeof (bool *) )
#include <float.h>
int main() { return 0; }
#endif
-#ifdef HAVE_INET_NTOA_R_DECL
-#include <arpa/inet.h>
-
-typedef void (*func_type)();
-
-int main()
-{
-#ifndef inet_ntoa_r
- func_type func;
- func = (func_type)inet_ntoa_r;
- (void)func;
-#endif
- return 0;
-}
-#endif
-#ifdef HAVE_INET_NTOA_R_DECL_REENTRANT
-#define _REENTRANT
-#include <arpa/inet.h>
-
-typedef void (*func_type)();
-
-int main()
-{
-#ifndef inet_ntoa_r
- func_type func;
- func = (func_type)&inet_ntoa_r;
- (void)func;
-#endif
- return 0;
-}
-#endif
#ifdef HAVE_GETADDRINFO
#include <netdb.h>
#include <sys/types.h>
diff --git a/CMake/Platforms/WindowsCache.cmake b/CMake/Platforms/WindowsCache.cmake
index 8f92cbd79..2f96dbca3 100644
--- a/CMake/Platforms/WindowsCache.cmake
+++ b/CMake/Platforms/WindowsCache.cmake
@@ -86,8 +86,6 @@ if(NOT UNIX)
set(HAVE_GETHOSTBYADDR 1)
set(HAVE_GETTIMEOFDAY 0)
set(HAVE_INET_ADDR 1)
- set(HAVE_INET_NTOA 1)
- set(HAVE_INET_NTOA_R 0)
set(HAVE_CLOSESOCKET 1)
set(HAVE_SETVBUF 0)
set(HAVE_SIGSETJMP 0)
@@ -122,8 +120,6 @@ if(NOT UNIX)
set(TIME_WITH_SYS_TIME 0)
set(HAVE_O_NONBLOCK 0)
set(HAVE_IN_ADDR_T 0)
- set(HAVE_INET_NTOA_R_DECL 0)
- set(HAVE_INET_NTOA_R_DECL_REENTRANT 0)
if(ENABLE_IPV6)
set(HAVE_GETADDRINFO 1)
else()