diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-03-26 07:10:15 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-03-26 07:10:15 +0000 |
commit | 43137cf5950e56bb169550d750e23d6e1e35f1f4 (patch) | |
tree | 08815f989f053af191ee3e3ffc657e4179f07d97 | |
parent | db6dc49b0b2e23c0f74daddc25317fea702d6eab (diff) |
check for netinet/tcp.h precense before actually including it
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | lib/connect.c | 2 |
2 files changed, 3 insertions, 0 deletions
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 <sys/socket.h> +#endif +#ifdef HAVE_NETINET_TCP_H #include <netinet/tcp.h> /* for TCP_NODELAY */ #endif #include <sys/ioctl.h> |