aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2022-08-20 19:19:39 +0300
committerSergey Poznyakoff <gray@gnu.org>2022-08-20 19:19:39 +0300
commit0516e2461e8f2e3b33a7fffa13705cdb1de77c52 (patch)
treef3a8c1dd94d4d90f963702e3f06936d048c81b8a
parent82d8dc6b0c0f316acb7f9b4f351fbd8cb1f85e99 (diff)
downloadacvmod-master.tar.gz
acvmod-master.tar.bz2
Make sure the fix 99b8dd21c7 applies only to Varnish 6.0HEADmaster
-rw-r--r--varnishapi.m412
1 files changed, 7 insertions, 5 deletions
diff --git a/varnishapi.m4 b/varnishapi.m4
index 1d1107b..129d66a 100644
--- a/varnishapi.m4
+++ b/varnishapi.m4
@@ -135,9 +135,11 @@ AC_DEFUN([AM_VARNISHAPI],
* These macros work around this vacillation.
*/
-#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)
+#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
])

Return to:

Send suggestions and report system problems to the System administrator.