aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac1
-rw-r--r--lib/connect.c2
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>