]> granicus.if.org Git - curl/commitdiff
check for netinet/tcp.h precense before actually including it
authorDaniel Stenberg <daniel@haxx.se>
Fri, 26 Mar 2004 07:10:15 +0000 (07:10 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 26 Mar 2004 07:10:15 +0000 (07:10 +0000)
configure.ac
lib/connect.c

index 082281a46a19b4619748f3b45653db558c975d5b..e188bc900a9b8b808dcb68fafaa2054a5eb19473 100644 (file)
@@ -1001,6 +1001,7 @@ AC_CHECK_HEADERS(
         arpa/inet.h \
         net/if.h \
         netinet/in.h \
+        netinet/tcp.h \
         netdb.h \
         sys/sockio.h \
         sys/stat.h \
index b5c90f5892856f2e9ecae750c7376e9a9bde05f6..6f45e60d37d59d3d291b7998d1b7837ece4be01f 100644 (file)
@@ -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>