Use arpa_inet in inet_?to?.
authorSimon Josefsson <simon@josefsson.org>
Fri, 28 Jul 2006 16:47:24 +0000 (16:47 +0000)
committerSimon Josefsson <simon@josefsson.org>
Fri, 28 Jul 2006 16:47:24 +0000 (16:47 +0000)
ChangeLog
lib/ChangeLog
lib/inet_ntop.h
lib/inet_pton.h
modules/inet_ntop
modules/inet_pton

index c4da857..c0c8c61 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-07-28  Simon Josefsson  <jas@extundo.com>
+
+       * modules/inet_ntop (Depends-on): Depend on arpa_inet.
+       * modules/inet_pton (Depends-on): Likewise.
+
 2006-07-25  Bruno Haible  <bruno@clisp.org>
 
        * modules/version-etc (Depends-on): Add stdarg.
index b15f391..372e145 100644 (file)
@@ -1,3 +1,8 @@
+2006-07-28  Simon Josefsson  <jas@extundo.com>
+
+       * inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
+       #include's.
+
 2006-07-28  Bruno Haible <bruno@clisp.org>
 
        * inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
index 6d80158..b581ab1 100644 (file)
@@ -20,9 +20,7 @@
 #if HAVE_NETINET_IN_H
 # include <netinet/in.h>
 #endif
-#if HAVE_ARPA_INET_H
-# include <arpa/inet.h>
-#endif
+#include <arpa/inet.h>
 
 /* Converts an internet address from internal format to a printable,
    presentable format.
index bc2ee91..86c801c 100644 (file)
@@ -20,9 +20,7 @@
 #if HAVE_NETINET_IN_H
 # include <netinet/in.h>
 #endif
-#if HAVE_ARPA_INET_H
-# include <arpa/inet.h>
-#endif
+#include <arpa/inet.h>
 
 #if !HAVE_DECL_INET_PTON
 extern int inet_pton (int af, const char *restrict src, void *restrict dst);
index 269e3cd..0e05e47 100644 (file)
@@ -10,6 +10,7 @@ Depends-on:
 restrict
 socklen
 sys_socket
+arpa_inet
 
 configure.ac:
 gl_INET_NTOP
index d673ef5..a79eb67 100644 (file)
@@ -10,6 +10,7 @@ Depends-on:
 restrict
 socklen
 sys_socket
+arpa_inet
 
 configure.ac:
 gl_INET_PTON