diff options
Diffstat (limited to 'src/binlog.c')
-rw-r--r-- | src/binlog.c | 18 |
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 @@ | |||
1 | /* This file is part of vmod-binlog | 1 | /* This file is part of vmod-binlog |
2 | Copyright (C) 2013, 2014, 2016, 2017 Sergey Poznyakoff | 2 | Copyright (C) 2013-2018 Sergey Poznyakoff |
3 | 3 | ||
4 | Vmod-binlog is free software; you can redistribute it and/or modify | 4 | Vmod-binlog is free software; you can redistribute it and/or modify |
5 | it under the terms of the GNU General Public License as published by | 5 | it under the terms of the GNU General Public License as published by |
@@ -27,11 +27,17 @@ | |||
27 | #include <stdarg.h> | 27 | #include <stdarg.h> |
28 | #include <ctype.h> | 28 | #include <ctype.h> |
29 | #include <time.h> | 29 | #include <time.h> |
30 | #include "vcl.h" | 30 | #include <string.h> |
31 | #include "vrt.h" | 31 | #if VARNISHAPI_MAJOR > 5 |
32 | #include "vcc_if.h" | 32 | # include "cache/cache.h" |
33 | 33 | # include "vcl.h" | |
34 | #include "cache/cache.h" | 34 | # include "vcc_if.h" |
35 | #else | ||
36 | # include "vcl.h" | ||
37 | # include "vrt.h" | ||
38 | # include "vcc_if.h" | ||
39 | # include "cache/cache.h" | ||
40 | #endif | ||
35 | #define WSPTR(s) ((s)->ws) | 41 | #define WSPTR(s) ((s)->ws) |
36 | 42 | ||
37 | #include "vmod-binlog.h" | 43 | #include "vmod-binlog.h" |