[master] 1f526fb ifdef the param structure, we only need it if we have TCP_KEEP

Poul-Henning Kamp phk at FreeBSD.org
Tue Jan 7 23:41:40 CET 2014


commit 1f526fbc1dd90b548cc6b9cb7bd52e9ac22a2e89
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Tue Jan 7 22:41:21 2014 +0000

    ifdef the param structure, we only need it if we have TCP_KEEP

diff --git a/bin/varnishd/mgt/mgt_param_tcp.c b/bin/varnishd/mgt/mgt_param_tcp.c
index 7e5c7f9..66d10ab 100644
--- a/bin/varnishd/mgt/mgt_param_tcp.c
+++ b/bin/varnishd/mgt/mgt_param_tcp.c
@@ -49,6 +49,8 @@
 
 #include "mgt/mgt_param.h"
 
+#ifdef HAVE_TCP_KEEP
+
 static struct parspec mgt_parspec_tcp_keep[] = {
 	{ "tcp_keepalive_time", tweak_timeout, &mgt_param.tcp_keepalive_time,
 		"1", "7200",
@@ -71,8 +73,6 @@ static struct parspec mgt_parspec_tcp_keep[] = {
 	{ NULL, NULL, NULL }
 };
 
-#ifdef HAVE_TCP_KEEP
-
 static void
 tcp_probe(int sock, int nam, const char *param, unsigned def)
 {



More information about the varnish-commit mailing list