]> granicus.if.org Git - curl/commitdiff
netinet/tcp.h may require netinet/in.h to be include before
authorDaniel Stenberg <daniel@haxx.se>
Mon, 29 Mar 2004 06:22:57 +0000 (06:22 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 29 Mar 2004 06:22:57 +0000 (06:22 +0000)
configure.ac
lib/connect.c

index e188bc900a9b8b808dcb68fafaa2054a5eb19473..ad40ede976c46480d6e347230813995e49cce248 100644 (file)
@@ -1038,6 +1038,9 @@ dnl default includes
 #ifdef HAVE_SYS_SOCKET_H
 #include <sys/socket.h>
 #endif
+#ifdef HAVE_NETINET_IN_H
+#include <netinet/in.h>
+#endif
 ]
 )
 
index 77bcb56d14e34df10dcb89e4b28176251ab8f90f..78338de65ec4787d815147e0fd2f2cb9ec27c8a1 100644 (file)
 #ifdef HAVE_SYS_SOCKET_H
 #include <sys/socket.h>
 #endif
+#ifdef HAVE_NETINET_IN_H
+#include <netinet/in.h> /* <netinet/tcp.h> may need it */
+#endif
 #ifdef HAVE_NETINET_TCP_H
 #include <netinet/tcp.h> /* for TCP_NODELAY */
 #endif
+#ifdef HAVE_SYS_IOCTL_H
 #include <sys/ioctl.h>
+#endif
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
 #endif