Thread (5 messages) flat view 5 messages, 3 authors, 2022-01-20

Re: [PATCH] cache.h: auto-detect if zlib has uncompress2()

From: Carlo Arenas <hidden>
Date: 2022-01-20 02:44:10

On Mon, Jan 17, 2022 at 11:49 AM René Scharfe [off-list ref] wrote:
Am 17.01.22 um 18:13 schrieb Ævar Arnfjörð Bjarmason:
quoted
diff --git a/compat/zlib-uncompress2.c b/compat/zlib-uncompress2.c
index 722610b9718..915796e85ac 100644
--- a/compat/zlib-uncompress2.c
+++ b/compat/zlib-uncompress2.c
@@ -8,15 +8,12 @@

 */

-#include "../reftable/system.h"
-#define z_const
Why is it safe to remove this definition?
Because it's defined in
zconf.h, included by zlib.h.  But why did we need it in the first place?
because really old versions of zlib don't have it defined in zconf.h,
and therefore the "compat" code would fail to build.

Carlo
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help