]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Fix forgotten portable header prefix 1999/head
authorBjörn Ketelaars <bjorn.ketelaars@hydroxide.nl>
Sat, 15 Feb 2020 11:42:00 +0000 (12:42 +0100)
committerBjörn Ketelaars <bjorn.ketelaars@hydroxide.nl>
Sat, 15 Feb 2020 11:42:00 +0000 (12:42 +0100)
PR #1987 forgot to prefix another include causing lz4 detection to fail.

programs/Makefile

index a9ee3cb5311bf5800eb0399f9666922ddc6f8010..47d3965cfca0de1029a2206aa962612a9355065a 100644 (file)
@@ -133,7 +133,7 @@ endif
 
 # lz4 detection
 NO_LZ4_MSG := ==> no liblz4, building zstd without .lz4 support
-HAVE_LZ4 := $(shell printf '$(NUM_SYMBOL)include <lz4frame.h>\n\#include <lz4.h>\nint main(void) { return 0; }' > have_lz4.c && $(CC) $(FLAGS) -o have_lz4$(EXT) have_lz4.c -llz4 2> $(VOID) && rm have_lz4$(EXT) && echo 1 || echo 0; rm have_lz4.c)
+HAVE_LZ4 := $(shell printf '$(NUM_SYMBOL)include <lz4frame.h>\n$(NUM_SYMBOL)include <lz4.h>\nint main(void) { return 0; }' > have_lz4.c && $(CC) $(FLAGS) -o have_lz4$(EXT) have_lz4.c -llz4 2> $(VOID) && rm have_lz4$(EXT) && echo 1 || echo 0; rm have_lz4.c)
 ifeq ($(HAVE_LZ4), 1)
 LZ4_MSG := ==> building zstd with .lz4 compression support
 LZ4CPP = -DZSTD_LZ4COMPRESS -DZSTD_LZ4DECOMPRESS