2006-07-28 Bruno Haible <bruno@clisp.org>
authorSimon Josefsson <simon@josefsson.org>
Fri, 28 Jul 2006 16:28:08 +0000 (16:28 +0000)
committerSimon Josefsson <simon@josefsson.org>
Fri, 28 Jul 2006 16:28:08 +0000 (16:28 +0000)
* 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.

lib/ChangeLog
lib/inet_ntop.h
lib/inet_pton.h

index d159350..b15f391 100644 (file)
@@ -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,
index 69c838d..6d80158 100644 (file)
 
 #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
 
index 353395b..bc2ee91 100644 (file)
 
 #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