From: Nick Terrell Date: Mon, 6 Feb 2017 19:54:31 +0000 (-0800) Subject: Ensure can be included in HAVE_ZLIB test X-Git-Tag: v1.1.4~1^2~80^2^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F532%2Fhead;p=thirdparty%2Fzstd.git Ensure can be included in HAVE_ZLIB test --- diff --git a/programs/Makefile b/programs/Makefile index 599bef694..ae798c2a6 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