summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 32bf93f)
raw | patch | inline | side by side (parent: 32bf93f)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 1 Aug 2015 11:22:07 +0000 (13:22 +0200) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Mon, 3 Aug 2015 21:13:30 +0000 (23:13 +0200) |
We look for varnish/vapi/vsc.h in /usr/include/varnish
but we should look for vapi/vsc.h
This is only an issue on FreeBSD since /usr/local/include is not
in the default search path.
but we should look for vapi/vsc.h
This is only an issue on FreeBSD since /usr/local/include is not
in the default search path.
configure.ac | patch | blob | history | |
src/varnish.c | patch | blob | history |
diff --git a/configure.ac b/configure.ac
index ccb90c9ff3e94f5631a683407ffd7c2032e22e97..2da40aacf0b5826418ac4e5494ff477b214cc2bf 100644 (file)
--- a/configure.ac
+++ b/configure.ac
CPPFLAGS="$CPPFLAGS $with_libvarnish_cflags"
- AC_CHECK_HEADERS(varnish/vapi/vsc.h,
+ AC_CHECK_HEADERS(vapi/vsc.h,
[AC_DEFINE([HAVE_VARNISH_V4], [1], [Varnish 4 API support])],
- [AC_CHECK_HEADERS(varnish/vsc.h,
+ [AC_CHECK_HEADERS(vsc.h,
[AC_DEFINE([HAVE_VARNISH_V3], [1], [Varnish 3 API support])],
- [AC_CHECK_HEADERS(varnish/varnishapi.h,
+ [AC_CHECK_HEADERS(varnishapi.h,
[AC_DEFINE([HAVE_VARNISH_V2], [1], [Varnish 2 API support])],
[with_libvarnish="no (found none of the varnish header files)"])])])
diff --git a/src/varnish.c b/src/varnish.c
index a27f9cf6d3476f3e7ba38ff515d43a4c7a231639..1089222327ac8a61f540f4a27d333ed1455c6a66 100644 (file)
--- a/src/varnish.c
+++ b/src/varnish.c
#include "configfile.h"
#if HAVE_VARNISH_V4
-#include <varnish/vapi/vsm.h>
-#include <varnish/vapi/vsc.h>
+#include <vapi/vsm.h>
+#include <vapi/vsc.h>
typedef struct VSC_C_main c_varnish_stats_t;
#endif
#if HAVE_VARNISH_V3
-#include <varnish/varnishapi.h>
-#include <varnish/vsc.h>
+#include <varnishapi.h>
+#include <vsc.h>
typedef struct VSC_C_main c_varnish_stats_t;
#endif
#if HAVE_VARNISH_V2
-#include <varnish/varnishapi.h>
+#include <varnishapi.h>
typedef struct varnish_stats c_varnish_stats_t;
#endif