[master] 5d3dc29 Include compat/srandomdev.h in cache_main.c to fix build on Linux.

Martin Blix Grydeland martin at varnish-cache.org
Thu Aug 16 10:06:18 CEST 2012


commit 5d3dc293ecbf1d1944bfb60701543d2f47cb4b1c
Author: Martin Blix Grydeland <martin at varnish-software.com>
Date:   Thu Aug 16 10:05:16 2012 +0200

    Include compat/srandomdev.h in cache_main.c to fix build on Linux.

diff --git a/bin/varnishd/cache/cache_main.c b/bin/varnishd/cache/cache_main.c
index 37aea3a..8af00f6 100644
--- a/bin/varnishd/cache/cache_main.c
+++ b/bin/varnishd/cache/cache_main.c
@@ -40,6 +40,10 @@
 #include "waiter/waiter.h"
 #include "hash/hash_slinger.h"
 
+#ifndef HAVE_SRANDOMDEV
+#include "compat/srandomdev.h"
+#endif
+
 volatile struct params	*cache_param;
 
 /*--------------------------------------------------------------------



More information about the varnish-commit mailing list