aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/vmod_dict.c18
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,5 +1,5 @@
/* 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
@@ -22,11 +22,17 @@
#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
{

Return to:

Send suggestions and report system problems to the System administrator.