diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2020-03-23 17:46:47 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2020-03-23 17:46:47 +0200 |
commit | 87ff2f5ebb147d6800b838d8e9dd6063305ddd47 (patch) | |
tree | efd4a7b00276286221a71229a4f42226a71c83bd /src | |
parent | 347da6028be9ae8ea1b5ac0a82ad7783780e6782 (diff) | |
download | vmod-dict-87ff2f5ebb147d6800b838d8e9dd6063305ddd47.tar.gz vmod-dict-87ff2f5ebb147d6800b838d8e9dd6063305ddd47.tar.bz2 |
Restore backward compatibility with <6.2
Diffstat (limited to 'src')
-rw-r--r-- | src/vmod_dict.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/vmod_dict.c b/src/vmod_dict.c index 81f35e2..8c1e230 100644 --- a/src/vmod_dict.c +++ b/src/vmod_dict.c @@ -34,2 +34,10 @@ #endif + +#ifdef VPFX +# define VEVENT(a) VPFX(a) +#else +/* For compatibility with varnish prior to 6.2 */ +# define VEVENT(a) a +#endif + #include <vas.h> @@ -376,3 +384,3 @@ fill_table(void) int -vmod_dict_event(VRT_CTX, struct vmod_priv *priv, enum vcl_event_e e) +VEVENT(dict_event)(VRT_CTX, struct vmod_priv *priv, enum vcl_event_e e) { |