From 2cb8ee878437fb627bbee838ad8d125dafd84285 Mon Sep 17 00:00:00 2001 From: Nick Terrell Date: Mon, 6 Feb 2017 11:32:13 -0800 Subject: [PATCH 1/2] Change zlib include to be a system include --- programs/fileio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/fileio.c b/programs/fileio.c index a9e1574a..087bf950 100644 --- a/programs/fileio.c +++ b/programs/fileio.c @@ -39,7 +39,7 @@ # include "zstdmt_compress.h" #endif #ifdef ZSTD_GZDECOMPRESS -# include "zlib.h" +# include # if !defined(z_const) # define z_const # endif From 7e3fc73795064bdbb49f59d7af1657b994c8b057 Mon Sep 17 00:00:00 2001 From: Nick Terrell Date: Mon, 6 Feb 2017 11:54:31 -0800 Subject: [PATCH 2/2] Ensure can be included in HAVE_ZLIB test --- programs/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/Makefile b/programs/Makefile index 599bef69..ae798c2a 100644 --- a/programs/Makefile +++ b/programs/Makefile @@ -67,7 +67,7 @@ endif # zlib detection VOID = /dev/null -HAVE_ZLIB := $(shell echo "int main(){}" | $(CC) -o $(VOID) -x c - -lz 2> $(VOID) && echo 1 || echo 0) +HAVE_ZLIB := $(shell echo "\#include \nint main(){}" | $(CC) -o $(VOID) -x c - -lz 2> $(VOID) && echo 1 || echo 0) ifeq ($(HAVE_ZLIB), 1) ZLIBCPP = -DZSTD_GZDECOMPRESS ZLIBLD = -lz