[PATCH] compat: support pre-1.2 zlib
Older zlib's don't have deflateBound()
This commit is contained in:

committed by
Linus Torvalds

parent
ecee9d9e79
commit
9da3acfb19
4
cache.h
4
cache.h
@ -17,6 +17,10 @@
|
|||||||
#include SHA1_HEADER
|
#include SHA1_HEADER
|
||||||
#include <zlib.h>
|
#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
|
* Basic data structures for the directory cache
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user