diff --git a/cache.h b/cache.h index e27429eae9..a10243d192 100644 --- a/cache.h +++ b/cache.h @@ -17,6 +17,10 @@ #include SHA1_HEADER #include +#if ZLIB_VERNUM < 0x1200 +#define deflateBound(c,s) ((s) + (((s) + 7) >> 3) + (((s) + 63) >> 6) + 11) +#endif + /* * Basic data structures for the directory cache *