[master] b2c617d Don't muck about with Linux #defines

Poul-Henning Kamp phk at varnish-cache.org
Tue May 31 13:41:36 CEST 2011


commit b2c617d7be6745d8ba0d96b190a1e99fdf1eafd1
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Tue May 31 11:41:24 2011 +0000

    Don't muck about with Linux #defines

diff --git a/lib/libvarnish/tcp.c b/lib/libvarnish/tcp.c
index 58c61c6..6c892a0 100644
--- a/lib/libvarnish/tcp.c
+++ b/lib/libvarnish/tcp.c
@@ -151,7 +151,7 @@ VTCP_filter_http(int sock)
 	return (i);
 #elif defined(__linux)
 	int defer = 1;
-	setsockopt(sock, SOL_TCP,VTCP_DEFER_ACCEPT,(char *) &defer, sizeof(int));
+	setsockopt(sock, SOL_TCP,TCP_DEFER_ACCEPT,(char *) &defer, sizeof(int));
 	return (0);
 #else
 	(void)sock;



More information about the varnish-commit mailing list