Skip to content

Commit 6de3d88

Browse files
committed
Merge branch 'cb/reftable-fixup' into seen
Fixes to another topic. * cb/reftable-fixup: openbsd: allow reftable building with zlib 1.2.3 reftable: clarify zlib version dependency fixup! Provide zlib's uncompress2 from compat/zlib-compat.c
2 parents 771921d + 3bf70c1 commit 6de3d88

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1751,7 +1751,7 @@ endif
17511751

17521752
ifdef NO_UNCOMPRESS2
17531753
BASIC_CFLAGS += -DNO_UNCOMPRESS2
1754-
LIB_OBJS += compat/zlib-uncompress2.o
1754+
REFTABLE_OBJS += compat/zlib-uncompress2.o
17551755
endif
17561756

17571757
ifdef NO_POSIX_GOODIES

config.mak.uname

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@ ifeq ($(uname_S),FreeBSD)
258258
FILENO_IS_A_MACRO = UnfortunatelyYes
259259
endif
260260
ifeq ($(uname_S),OpenBSD)
261+
NO_UNCOMPRESS2 = YesPlease
261262
NO_STRCASESTR = YesPlease
262263
NO_MEMMEM = YesPlease
263264
USE_ST_TIMESPEC = YesPlease

reftable/block.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ license that can be found in the LICENSE file or at
1616
#include <zlib.h>
1717

1818
#ifdef NO_UNCOMPRESS2
19-
/* This is uncompress2, which is only available in zlib as of 2017.
19+
/*
20+
* This is uncompress2, which is only available in zlib >= 1.2.9
21+
* (released as of early 2017)
2022
*/
2123
int uncompress2(Bytef *dest, uLongf *destLen, const Bytef *source,
2224
uLong *sourceLen);

0 commit comments

Comments
 (0)