From 43137cf5950e56bb169550d750e23d6e1e35f1f4 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 26 Mar 2004 07:10:15 +0000 Subject: [PATCH] check for netinet/tcp.h precense before actually including it --- configure.ac | 1 + lib/connect.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/configure.ac b/configure.ac index 082281a46..e188bc900 100644 --- a/configure.ac +++ b/configure.ac @@ -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 \ 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 +#endif +#ifdef HAVE_NETINET_TCP_H #include /* for TCP_NODELAY */ #endif #include