diff mbox series

[3/4] fixup! Provide zlib's uncompress2 from compat/zlib-compat.c

Message ID 20210908074557.38141-4-carenas@gmail.com (mailing list archive)
State New, archived
Headers show
Series fixup for hn/reftable | expand

Commit Message

Carlo Marcelo Arenas Belón Sept. 8, 2021, 7:45 a.m. UTC
while at it, make sure z_conf is defined to null (usually coming
from zconf.h, but optional and otherwise to fail with older zlib
versions)

Signed-off-by: Carlo Marcelo Arenas Belón <carenas@gmail.com>
---
 compat/zlib-uncompress2.c | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/compat/zlib-uncompress2.c b/compat/zlib-uncompress2.c
index 23b72b49c4..722610b971 100644
--- a/compat/zlib-uncompress2.c
+++ b/compat/zlib-uncompress2.c
@@ -8,6 +8,9 @@ 
 
 */
 
+#include "../reftable/system.h"
+#define z_const
+
 /*
  * Copyright (C) 1995-2003, 2010, 2014, 2016 Jean-loup Gailly, Mark Adler
  * For conditions of distribution and use, see copyright notice in zlib.h