[master] 468b2b5 need to include vmb.h unconditionally

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


commit 468b2b5290463943ae07ec33fde75618913a71ce
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Tue Dec 13 15:11:33 2016 +0100

    need to include vmb.h unconditionally
    
    it is the place which defines
    VMB_NEEDS_PTHREAD_WORKAROUND_THIS_IS_BAD_FOR_PERFORMANCE

diff --git a/lib/libvarnish/vmb.c b/lib/libvarnish/vmb.c
index 13fc87c..f98e31e 100644
--- a/lib/libvarnish/vmb.c
+++ b/lib/libvarnish/vmb.c
@@ -28,13 +28,14 @@
 
 #include "config.h"
 
+#include "vmb.h"
+
 #ifdef VMB_NEEDS_PTHREAD_WORKAROUND_THIS_IS_BAD_FOR_PERFORMANCE
 
 #include <pthread.h>
 #include <unistd.h>
 
 #include "vas.h"
-#include "vmb.h"
 
 static pthread_mutex_t	mb_mtx;
 static pthread_once_t	mb_mtx_once = PTHREAD_ONCE_INIT;



More information about the varnish-commit mailing list