2006-07-28 Bruno Haible <bruno@clisp.org>
[pspp] / lib / inet_pton.h
index 353395bccb9145c0a85075a2b3b7063f6e5ed9df..bc2ee91e31238d7ab85b5d26fab1749b81c38554 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