summaryrefslogtreecommitdiffabout
authorSergey Poznyakoff <gray@gnu.org>2020-03-23 15:46:47 (GMT)
committer Sergey Poznyakoff <gray@gnu.org>2020-03-23 15:46:47 (GMT)
commit87ff2f5ebb147d6800b838d8e9dd6063305ddd47 (patch) (unidiff)
treeefd4a7b00276286221a71229a4f42226a71c83bd
parent347da6028be9ae8ea1b5ac0a82ad7783780e6782 (diff)
downloadvmod-dict-87ff2f5ebb147d6800b838d8e9dd6063305ddd47.tar.gz
vmod-dict-87ff2f5ebb147d6800b838d8e9dd6063305ddd47.tar.bz2
Restore backward compatibility with <6.2
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--configure.ac2
-rw-r--r--src/vmod_dict.c10
2 files changed, 10 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 1dc3887..c37cc81 100644
--- a/configure.ac
+++ b/configure.ac
@@ -45,7 +45,7 @@ AC_HEADER_STDC
45 45
46# Check for functions 46# Check for functions
47 47
48AM_VARNISHAPI([4.1],[6.3.1]) 48AM_VARNISHAPI([4.1],[6.3.2])
49AC_DEFINE_UNQUOTED([VARNISHAPI_MAJOR],[$VARNISHAPI_MAJOR], 49AC_DEFINE_UNQUOTED([VARNISHAPI_MAJOR],[$VARNISHAPI_MAJOR],
50 [Varnish API major version number]) 50 [Varnish API major version number])
51 51
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
@@ -32,6 +32,14 @@
32# include <vcc_if.h> 32# include <vcc_if.h>
33# include <cache/cache.h> 33# include <cache/cache.h>
34#endif 34#endif
35
36#ifdef VPFX
37# define VEVENT(a) VPFX(a)
38#else
39/* For compatibility with varnish prior to 6.2 */
40# define VEVENT(a) a
41#endif
42
35#include <vas.h> 43#include <vas.h>
36 44
37struct entry 45struct entry
@@ -374,7 +382,7 @@ fill_table(void)
374 } 382 }
375 383
376int 384int
377vmod_dict_event(VRT_CTX, struct vmod_priv *priv, enum vcl_event_e e) 385VEVENT(dict_event)(VRT_CTX, struct vmod_priv *priv, enum vcl_event_e e)
378{ 386{
379 switch (e) { 387 switch (e) {
380 case VCL_EVENT_LOAD: 388 case VCL_EVENT_LOAD:

Return to:

Send suggestions and report system problems to the System administrator.