From f665d5cb275b8bff2ef6156b0ad12007b586fd87 Mon Sep 17 00:00:00 2001
From: Nick Mathewson <nickm@torproject.org>
Date: Mon, 24 Feb 2014 10:32:00 -0500
Subject: [PATCH] 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.
---
 CMakeLists.txt                         | 1 -
 WIN32-Code/nmake/event2/event-config.h | 3 ---
 configure.ac                           | 1 -
 event-config.h.cmake                   | 3 ---
 4 files changed, 8 deletions(-)

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 <ifaddrs.h> 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
 
-- 
2.40.0