summaryrefslogtreecommitdiffabout
path: root/src
authorSergey Poznyakoff <gray@gnu.org>2018-12-10 11:34:26 (GMT)
committer Sergey Poznyakoff <gray@gnu.org>2018-12-10 11:35:46 (GMT)
commit64853618b1c0ae890772aaad3ef75ffe6fdce67a (patch) (side-by-side diff)
treef3f270896ae5652d357c209331459cb9bb97b12c /src
parentab8851545baad4d84dd7f42336dd3de9accdba5f (diff)
downloadvmod-binlog-64853618b1c0ae890772aaad3ef75ffe6fdce67a.tar.gz
vmod-binlog-64853618b1c0ae890772aaad3ef75ffe6fdce67a.tar.bz2
Version 2.3
Support for Varnish API 6.0.2
Diffstat (limited to 'src') (more/less context) (ignore whitespace changes)
-rw-r--r--src/binlog.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/binlog.c b/src/binlog.c
index b2d581c..8263c12 100644
--- a/src/binlog.c
+++ b/src/binlog.c
@@ -1,5 +1,5 @@
/* This file is part of vmod-binlog
- Copyright (C) 2013, 2014, 2016, 2017 Sergey Poznyakoff
+ Copyright (C) 2013-2018 Sergey Poznyakoff
Vmod-binlog is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -27,11 +27,17 @@
#include <stdarg.h>
#include <ctype.h>
#include <time.h>
-#include "vcl.h"
-#include "vrt.h"
-#include "vcc_if.h"
-
-#include "cache/cache.h"
+#include <string.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)
#include "vmod-binlog.h"

Return to:

Send suggestions and report system problems to the System administrator.