Ensure <zlib.h> can be included in HAVE_ZLIB test

dev
Nick Terrell 2017-02-06 11:54:31 -08:00
parent 2cb8ee8784
commit 7e3fc73795
1 changed files with 1 additions and 1 deletions

View 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