aboutsummaryrefslogtreecommitdiff
path: root/src/dbrw.h
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2018-12-10 13:59:53 +0200
committerSergey Poznyakoff <gray@gnu.org>2018-12-10 14:00:55 +0200
commit841a9f6fa1e3dfa1323be6212056ecd28d21b696 (patch)
treef4ca4d8ed1451d0e4a680cfad7ac1230287ba943 /src/dbrw.h
parent691d208edcf53d48e2401340f1aec2adae8661c8 (diff)
downloadvmod-dbrw-841a9f6fa1e3dfa1323be6212056ecd28d21b696.tar.gz
vmod-dbrw-841a9f6fa1e3dfa1323be6212056ecd28d21b696.tar.bz2
Version 2.4; Support for varnish 6.0.2release-2.4
Diffstat (limited to 'src/dbrw.h')
-rw-r--r--src/dbrw.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/dbrw.h b/src/dbrw.h
index 1ff1056..bd0aa2a 100644
--- a/src/dbrw.h
+++ b/src/dbrw.h
@@ -21,10 +21,16 @@
#include <syslog.h>
#include <regex.h>
-#include "vcl.h"
-#include "vrt.h"
-#include "vcc_if.h"
-#include "cache/cache.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
#define WSPTR(s) ((s)->ws)
struct dbrw_connection;

Return to:

Send suggestions and report system problems to the System administrator.