From d85c21994f849c8ef98152023435622f42b4dc95 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 29 Mar 2004 06:22:57 +0000 Subject: netinet/tcp.h may require netinet/in.h to be include before --- configure.ac | 3 +++ lib/connect.c | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/configure.ac b/configure.ac index e188bc900..ad40ede97 100644 --- a/configure.ac +++ b/configure.ac @@ -1038,6 +1038,9 @@ dnl default includes #ifdef HAVE_SYS_SOCKET_H #include #endif +#ifdef HAVE_NETINET_IN_H +#include +#endif ] ) diff --git a/lib/connect.c b/lib/connect.c index 77bcb56d1..78338de65 100644 --- a/lib/connect.c +++ b/lib/connect.c @@ -32,10 +32,15 @@ #ifdef HAVE_SYS_SOCKET_H #include #endif +#ifdef HAVE_NETINET_IN_H +#include /* may need it */ +#endif #ifdef HAVE_NETINET_TCP_H #include /* for TCP_NODELAY */ #endif +#ifdef HAVE_SYS_IOCTL_H #include +#endif #ifdef HAVE_UNISTD_H #include #endif -- cgit v1.2.3