diff options
Diffstat (limited to 'src/vmod_dict.c')
-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 | |||
@@ -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 | ||
37 | struct entry | 45 | struct entry |
@@ -374,7 +382,7 @@ fill_table(void) | |||
374 | } | 382 | } |
375 | 383 | ||
376 | int | 384 | int |
377 | vmod_dict_event(VRT_CTX, struct vmod_priv *priv, enum vcl_event_e e) | 385 | VEVENT(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: |