[master] 5dd475b include cache.h before <sys/event.h> so Kqueue(2) gets sys/types.h

Nils Goroll nils.goroll at uplex.de
Tue Dec 13 13:40:05 CET 2016


commit 5dd475b82fcab1f1c199fd42a5ac39ac643e0650
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Tue Dec 13 13:38:57 2016 +0100

    include cache.h before <sys/event.h> so Kqueue(2) gets sys/types.h

diff --git a/bin/varnishd/waiter/cache_waiter_kqueue.c b/bin/varnishd/waiter/cache_waiter_kqueue.c
index 4631306..4832f49 100644
--- a/bin/varnishd/waiter/cache_waiter_kqueue.c
+++ b/bin/varnishd/waiter/cache_waiter_kqueue.c
@@ -33,13 +33,13 @@
 
 #if defined(HAVE_KQUEUE)
 
+#include "cache/cache.h"
+
 #include <sys/event.h>
 
 #include <errno.h>
 #include <stdlib.h>
 
-#include "cache/cache.h"
-
 #include "waiter/waiter_priv.h"
 #include "waiter/mgt_waiter.h"
 #include "vtim.h"



More information about the varnish-commit mailing list