aboutsummaryrefslogtreecommitdiff
path: root/src/vmod_geoip.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vmod_geoip.c')
-rw-r--r--src/vmod_geoip.c20
1 files changed, 14 insertions, 6 deletions
diff --git a/src/vmod_geoip.c b/src/vmod_geoip.c
index b7e30ba..5c1a2d4 100644
--- a/src/vmod_geoip.c
+++ b/src/vmod_geoip.c
@@ -8,12 +8,20 @@
#include <errno.h>
#include <string.h>
#include <inttypes.h>
-#include "vcl.h"
-#include "vrt.h"
-#include "vtcp.h"
-#include "vsa.h"
-#include "vcc_if.h"
-#include "cache/cache.h"
+
+#if VARNISHAPI_MAJOR > 5
+# include <cache/cache.h>
+# include <vcl.h>
+# include <vcc_if.h>
+#else
+# include <vcl.h>
+# include <vrt.h>
+# include <vcc_if.h>
+# include <cache/cache.h>
+#endif
+#include <vtcp.h>
+#include <vsa.h>
+
#include <maxminddb.h>
#include <assert.h>

Return to:

Send suggestions and report system problems to the System administrator.