aboutsummaryrefslogtreecommitdiff
path: root/src/variable.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/variable.c')
-rw-r--r--src/variable.c20
1 files changed, 14 insertions, 6 deletions
diff --git a/src/variable.c b/src/variable.c
index feaaa21..b8905be 100644
--- a/src/variable.c
+++ b/src/variable.c
@@ -1,5 +1,5 @@
/* This file is part of vmod-variable
- Copyright (C) 2013-2017 Sergey Poznyakoff
+ Copyright (C) 2013-2018 Sergey Poznyakoff
Vmod-variable is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -19,13 +19,21 @@
#include <stdarg.h>
#include <syslog.h>
#include <errno.h>
+#include <string.h>
#include <ctype.h>
#include <pcre.h>
-#include "vrt.h"
-#include "vcc_if.h"
-#include "pthread.h"
-#include "cache/cache.h"
-
+#include <pthread.h>
+#include <limits.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
#define WSPTR(s) ((s)->ws)
/* |hash_size| defines a sequence of symbol table sizes. These are prime

Return to:

Send suggestions and report system problems to the System administrator.