[master] f04cff3 still has a chance to compile.

Poul-Henning Kamp phk at varnish-cache.org
Tue Mar 15 09:27:17 CET 2011


commit f04cff326121c57593d16f19066a0525c4143a0a
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Tue Mar 15 08:26:25 2011 +0000

    still has a chance to compile.

diff --git a/bin/varnishd/cache_acceptor.c b/bin/varnishd/cache_acceptor.c
index e43f2c4..4bdb9ff 100644
--- a/bin/varnishd/cache_acceptor.c
+++ b/bin/varnishd/cache_acceptor.c
@@ -203,7 +203,12 @@ vca_acct(void *arg)
 	socklen_t l;
 	struct sockaddr_storage addr_s;
 	struct sockaddr *addr;
-	double send_timeout = 0, sess_timeout = 0;
+#ifdef SO_RCVTIMEO_WORKS
+	double sess_timeout = 0;
+#endif
+#ifdef SO_SNDTIMEO_WORKS
+	double send_timeout = 0;
+#endif
 	int i;
 	struct pollfd *pfd;
 	struct listen_sock *ls;



More information about the varnish-commit mailing list