aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-03-26 07:10:15 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-03-26 07:10:15 +0000
commit43137cf5950e56bb169550d750e23d6e1e35f1f4 (patch)
tree08815f989f053af191ee3e3ffc657e4179f07d97 /lib
parentdb6dc49b0b2e23c0f74daddc25317fea702d6eab (diff)
check for netinet/tcp.h precense before actually including it
Diffstat (limited to 'lib')
-rw-r--r--lib/connect.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/connect.c b/lib/connect.c
index b5c90f589..6f45e60d3 100644
--- a/lib/connect.c
+++ b/lib/connect.c
@@ -31,6 +31,8 @@
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
+#endif
+#ifdef HAVE_NETINET_TCP_H
#include <netinet/tcp.h> /* for TCP_NODELAY */
#endif
#include <sys/ioctl.h>