diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2018-12-10 15:37:46 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2018-12-10 15:37:46 +0200 |
commit | 5b18b9c1e8d0e0ad14937669a931a1a358e65091 (patch) | |
tree | 155fad81320aa1d742513b4c64a7c024ed437b2e /src | |
parent | a29737fc04272ac38d639ac25841183db1052fbc (diff) | |
download | vmod-dict-5b18b9c1e8d0e0ad14937669a931a1a358e65091.tar.gz vmod-dict-5b18b9c1e8d0e0ad14937669a931a1a358e65091.tar.bz2 |
Version 1.2 (support for Varnish 6.0.2)release-1.2
Diffstat (limited to 'src')
-rw-r--r-- | src/vmod_dict.c | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/vmod_dict.c b/src/vmod_dict.c index 04ee52c..f9114d1 100644 --- a/src/vmod_dict.c +++ b/src/vmod_dict.c @@ -1,8 +1,8 @@ /* This file is part of vmod_dict. - Copyright (C) 2017 Sergey Poznyakoff + Copyright (C) 2017-2018 Sergey Poznyakoff Vmod_dict is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version. @@ -19,17 +19,23 @@ #include <stdio.h> #include <errno.h> #include <string.h> #include <limits.h> #include <ctype.h> #include <syslog.h> -#include "vcl.h" -#include "vrt.h" -#include "vas.h" -#include "cache/cache.h" -#include "vcc_if.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 <vas.h> struct entry { char *key; char *val; size_t hash; |