aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--varnishapi.m42
1 files changed, 2 insertions, 0 deletions
diff --git a/varnishapi.m4 b/varnishapi.m4
index 1d1107b..129d66a 100644
--- a/varnishapi.m4
+++ b/varnishapi.m4
@@ -134,12 +134,14 @@ AC_DEFUN([AM_VARNISHAPI],
* (see http://varnish-cache.org/docs/trunk/whats-new/upgrading-6.3.html)
* These macros work around this vacillation.
*/
+#if VARNISHAPI_MAJOR == 6
# if !HAVE_DECL_WS_RESERVEALL
# define WS_ReserveAll(ws) WS_Reserve(ws,0)
# endif
# if !HAVE_DECL_WS_RESERVESIZE
# define WS_ReserveSize(ws,sz) WS_Reserve(ws,sz)
# endif
+#endif
])
fi

Return to:

Send suggestions and report system problems to the System administrator.