From: Nick Mathewson Date: Mon, 24 Feb 2014 15:32:00 +0000 (-0500) Subject: Stop checking for inet_aton; we don't use it. X-Git-Tag: release-2.1.4-alpha~28 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f665d5cb275b8bff2ef6156b0ad12007b586fd87;p=libevent Stop checking for inet_aton; we don't use it. We had cmake and autoconf tests for the inet_aton function... but we never actually use it any more. (The autoconf tests still use the callability of inet_aton to decide whether we need to link against -lresolv) Reported by Harlan Stenn. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 71d96ec3..76be7bf6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -217,7 +217,6 @@ CHECK_FUNCTION_EXISTS_EX(getnameinfo EVENT__HAVE_GETNAMEINFO) CHECK_FUNCTION_EXISTS_EX(gettimeofday EVENT__HAVE_GETTIMEOFDAY) CHECK_FUNCTION_EXISTS_EX(getprotobynumber EVENT__HAVE_GETPROTOBYNUMBER) CHECK_FUNCTION_EXISTS_EX(getservbyname EVENT__HAVE_GETSERVBYNAME) -CHECK_FUNCTION_EXISTS_EX(inet_aton EVENT__HAVE_INET_ATON) CHECK_FUNCTION_EXISTS_EX(inet_ntop EVENT__HAVE_INET_NTOP) CHECK_FUNCTION_EXISTS_EX(inet_pton EVENT__HAVE_INET_PTON) CHECK_FUNCTION_EXISTS_EX(kqueue EVENT__HAVE_KQUEUE) diff --git a/WIN32-Code/nmake/event2/event-config.h b/WIN32-Code/nmake/event2/event-config.h index 43b5c3fb..da550283 100644 --- a/WIN32-Code/nmake/event2/event-config.h +++ b/WIN32-Code/nmake/event2/event-config.h @@ -70,9 +70,6 @@ /* Define to 1 if you have the `gettimeofday' function. */ /* #define EVENT__HAVE_GETTIMEOFDAY 1 */ -/* Define to 1 if you have the `inet_aton' function. */ -/* #undef EVENT__HAVE_INET_ATON */ - /* Define to 1 if you have the `inet_ntop' function. */ /* #undef EVENT__HAVE_INET_NTOP */ diff --git a/configure.ac b/configure.ac index a0872bc1..a2a47bfa 100644 --- a/configure.ac +++ b/configure.ac @@ -340,7 +340,6 @@ AC_CHECK_FUNCS([ \ getnameinfo \ getprotobynumber \ gettimeofday \ - inet_aton \ inet_ntop \ inet_pton \ issetugid \ diff --git a/event-config.h.cmake b/event-config.h.cmake index 577b7448..34ac91c4 100644 --- a/event-config.h.cmake +++ b/event-config.h.cmake @@ -148,9 +148,6 @@ /* Define to 1 if you have the header file. */ #cmakedefine EVENT__HAVE_IFADDRS_H 1 -/* Define to 1 if you have the `inet_aton' function. */ -#cmakedefine EVENT__HAVE_INET_ATON 1 - /* Define to 1 if you have the `inet_ntop' function. */ #cmakedefine EVENT__HAVE_INET_NTOP 1