[3.0] 779ab3a always include config.h first

Nils Goroll nils.goroll at uplex.de
Tue Aug 5 14:53:26 CEST 2014


commit 779ab3a41fbd19f9f916b972c0215d05d6d3e335
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Tue Aug 5 14:53:00 2014 +0200

    always include config.h first
    
    Solaris (and others?) need defines from it (GNU_SOURCE in particular)

diff --git a/lib/libvmod_std/vmod_std.c b/lib/libvmod_std/vmod_std.c
index 544e2dc..f31d1ad 100644
--- a/lib/libvmod_std/vmod_std.c
+++ b/lib/libvmod_std/vmod_std.c
@@ -26,6 +26,7 @@
  * SUCH DAMAGE.
  */
 
+#include "config.h"
 #include <ctype.h>
 #include <stdarg.h>
 #include <stdlib.h>
diff --git a/lib/libvmod_std/vmod_std_conversions.c b/lib/libvmod_std/vmod_std_conversions.c
index 6f06c2c..5b1b1a1 100644
--- a/lib/libvmod_std/vmod_std_conversions.c
+++ b/lib/libvmod_std/vmod_std_conversions.c
@@ -27,6 +27,7 @@
  *
  */
 
+#include "config.h"
 #include <ctype.h>
 #include <math.h>
 #include <stdlib.h>
diff --git a/lib/libvmod_std/vmod_std_fileread.c b/lib/libvmod_std/vmod_std_fileread.c
index e1be09a..49d4f4c 100644
--- a/lib/libvmod_std/vmod_std_fileread.c
+++ b/lib/libvmod_std/vmod_std_fileread.c
@@ -37,6 +37,7 @@
  * XXX: underlying file has been updated.
  */
 
+#include "config.h"
 #include <stdlib.h>
 #include "vrt.h"
 #include "../../bin/varnishd/cache.h"



More information about the varnish-commit mailing list