diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-03-29 06:22:57 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-03-29 06:22:57 +0000 |
commit | d85c21994f849c8ef98152023435622f42b4dc95 (patch) | |
tree | 80e1e50e3efea12600e9fbc3f1ef7b04dfce34b3 /lib | |
parent | 6b33a5f954c11d77c82ead15e3e5560ca8568c42 (diff) |
netinet/tcp.h may require netinet/in.h to be include before
Diffstat (limited to 'lib')
-rw-r--r-- | lib/connect.c | 5 |
1 files changed, 5 insertions, 0 deletions
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 <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 |