From de9c9ad9c0104e2542f7e739b8dce42f016f3ef9 Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Thu, 8 May 2003 22:34:02 +0000
Subject: [PATCH] Now includes tcp.h on Unix (for TCP_NODELAY definition).

---
 src/xpdev/sockwrap.h | 19 ++++++++++---------
 1 file changed, 10 insertions(+), 9 deletions(-)

diff --git a/src/xpdev/sockwrap.h b/src/xpdev/sockwrap.h
index 2630463433..636502378d 100644
--- a/src/xpdev/sockwrap.h
+++ b/src/xpdev/sockwrap.h
@@ -52,15 +52,16 @@
 #define _WINSOCKAPI_	
 #endif
 
-#elif defined __unix__	/* Unix-variant */
-
-#include <netdb.h>		/* gethostbyname */
-#include <sys/types.h>  /* For u_int32_t on FreeBSD */
-#include <netinet/in.h>	/* IPPROTO_IP */
-#include <sys/socket.h>	/* socket/bind/etc. */
-#include <sys/time.h>	/* struct timeval */
-#include <arpa/inet.h>	/* inet_ntoa */
-#include <unistd.h>		/* close */
+#elif defined __unix__		/* Unix-variant */
+							
+#include <netdb.h>			/* gethostbyname */
+#include <sys/types.h>		/* For u_int32_t on FreeBSD */
+#include <netinet/in.h>		/* IPPROTO_IP */
+#include <sys/socket.h>		/* socket/bind/etc. */
+#include <sys/time.h>		/* struct timeval */
+#include <arpa/inet.h>		/* inet_ntoa */
+#include <netinet/tcp.h>	/* TCP_NODELAY */
+#include <unistd.h>			/* close */
 #if defined(__solaris__)
 	#include <sys/filio.h>  /* FIONBIO */
 #else
-- 
GitLab