diff options
author | Edgar Toernig <froese@gmx.de> | 2005-04-30 09:51:03 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-30 09:51:03 -0700 |
commit | 9da3acfb1942ef28424ea58068faf6ac3a3fc2c8 (patch) | |
tree | dd97c7e3749e83f1724968266d76951036ed7b3b /cache.h | |
parent | ecee9d9e793c7573cf3730fb9746527a0a7e94e7 (diff) | |
download | git-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.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 * |