]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Ensure <zlib.h> can be included in HAVE_ZLIB test 532/head
authorNick Terrell <terrelln@fb.com>
Mon, 6 Feb 2017 19:54:31 +0000 (11:54 -0800)
committerNick Terrell <terrelln@fb.com>
Mon, 6 Feb 2017 19:54:31 +0000 (11:54 -0800)
programs/Makefile

index 599bef694d60f73bb8deb598269076c772015de9..ae798c2a6572351bacfa3763cdcfb63ceb90af31 100644 (file)
@@ -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 <zlib.h>\nint main(){}" | $(CC) -o $(VOID) -x c - -lz 2> $(VOID) && echo 1 || echo 0)
 ifeq ($(HAVE_ZLIB), 1)
 ZLIBCPP = -DZSTD_GZDECOMPRESS
 ZLIBLD = -lz