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,3 +1,3 @@ /* This file is part of vmod-binlog - Copyright (C) 2013, 2014, 2016, 2017 Sergey Poznyakoff + Copyright (C) 2013-2018 Sergey Poznyakoff @@ -29,7 +29,13 @@ #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) |