$NetBSD: patch-ac,v 1.1 2007/01/22 14:33:31 rillig Exp $

--- cache.h.orig	2006-11-23 03:38:07.000000000 +0100
+++ cache.h	2007-01-20 03:01:16.958825320 +0100
@@ -6,7 +6,7 @@
 #include SHA1_HEADER
 #include <zlib.h>
 
-#if ZLIB_VERNUM < 0x1200
+#if ZLIB_VERNUM < 0x1200 || !defined(deflateBound)
 #define deflateBound(c,s)  ((s) + (((s) + 7) >> 3) + (((s) + 63) >> 6) + 11)
 #endif
 
