aboutsummaryrefslogtreecommitdiffstats
path: root/cache.h
diff options
context:
space:
mode:
authorEdgar Toernig <froese@gmx.de>2005-04-30 09:51:03 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-30 09:51:03 -0700
commit9da3acfb1942ef28424ea58068faf6ac3a3fc2c8 (patch)
treedd97c7e3749e83f1724968266d76951036ed7b3b /cache.h
parentecee9d9e793c7573cf3730fb9746527a0a7e94e7 (diff)
downloadgit-9da3acfb1942ef28424ea58068faf6ac3a3fc2c8.tar.gz
[PATCH] compat: support pre-1.2 zlib
Older zlib's don't have deflateBound()
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h4
1 files changed, 4 insertions, 0 deletions
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 <zlib.h>
+#if ZLIB_VERNUM < 0x1200
+#define deflateBound(c,s) ((s) + (((s) + 7) >> 3) + (((s) + 63) >> 6) + 11)
+#endif
+
/*
* Basic data structures for the directory cache
*