>From 6407032a319d7f4da45ea0743ec4048cd49e4b6e Mon Sep 17 00:00:00 2001
From: Nils Goroll <nils.goroll@uplex.de>
Date: Mon, 4 Nov 2013 18:33:34 +0100
Subject: [PATCH] always include config.h first -- solaris (and others?) need defines from it (GNU_SOURCE in particular)

---
 lib/libvmod_std/vmod_std.c             |    1 +
 lib/libvmod_std/vmod_std_conversions.c |    1 +
 lib/libvmod_std/vmod_std_fileread.c    |    1 +
 3 files changed, 3 insertions(+), 0 deletions(-)

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"
-- 
1.5.6.5

