changeset 7060:8d57e101d9f2

2006-07-28 Bruno Haible <bruno@clisp.org> * inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*. 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com> * inet_ntop.h, inet_pton.h: Need to include netinet/in.h before arpa/inet.h.
author Simon Josefsson <simon@josefsson.org>
date Fri, 28 Jul 2006 16:28:08 +0000
parents 0fca2a1a6835
children 5f4be1386417
files lib/ChangeLog lib/inet_ntop.h lib/inet_pton.h
diffstat 3 files changed, 17 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -1,3 +1,12 @@
+2006-07-28  Bruno Haible <bruno@clisp.org>
+
+	* inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
+
+2006-07-28  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
+
+	* inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
+	arpa/inet.h.
+
 2006-07-28  Bruno Haible  <bruno@clisp.org>
 
 	* mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph,
--- a/lib/inet_ntop.h
+++ b/lib/inet_ntop.h
@@ -17,7 +17,10 @@
 
 #include <sys/types.h>
 #include <sys/socket.h>
-#ifdef HAVE_ARPA_INET_H
+#if HAVE_NETINET_IN_H
+# include <netinet/in.h>
+#endif
+#if HAVE_ARPA_INET_H
 # include <arpa/inet.h>
 #endif
 
--- a/lib/inet_pton.h
+++ b/lib/inet_pton.h
@@ -17,7 +17,10 @@
 
 #include <sys/types.h>
 #include <sys/socket.h>
-#ifdef HAVE_ARPA_INET_H
+#if HAVE_NETINET_IN_H
+# include <netinet/in.h>
+#endif
+#if HAVE_ARPA_INET_H
 # include <arpa/inet.h>
 #endif