[PATCH] compat: support pre-1.2 zlib

Older zlib's don't have deflateBound()
This commit is contained in:
Edgar Toernig 2005-04-30 09:51:03 -07:00 committed by Linus Torvalds
parent ecee9d9e79
commit 9da3acfb19

View file

@ -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
*