diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2018-12-10 14:58:45 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2018-12-10 14:58:45 +0200 |
commit | 0bf07eac5b81f040a18b9c2071f8b7e6fd06fe44 (patch) | |
tree | 613bd865c8185a26c1723dd6d1879af5e3c2dd1a /src/variable.c | |
parent | c8cee8164cf638da3851a2c56a844e5ff3609eb0 (diff) | |
download | vmod-variable-0bf07eac5b81f040a18b9c2071f8b7e6fd06fe44.tar.gz vmod-variable-0bf07eac5b81f040a18b9c2071f8b7e6fd06fe44.tar.bz2 |
Version 1.3 (supports Varnish 6.0.2)release-1.3
Diffstat (limited to 'src/variable.c')
-rw-r--r-- | src/variable.c | 20 |
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 |