diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2020-09-17 13:09:06 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2020-09-17 13:10:25 +0200 |
commit | b52a9567520570bd6c850bcad3a6966f68639ef7 (patch) | |
tree | b63e6515b25020b3abdfdd63731db0d44ac54925 /lib/fstream/compressor.c | |
parent | ec38f4fa90d65362002a901b2d74be09fc6b128c (diff) |
Add a check whether libzstd supports stream compression
Streaming compression was added fairly recently to zstd (and then
the API was changed a few times).
Rather than rely on libzstd versioning macros, this commit adds an
m4 script to test at configure time if the enums/functions we need
are available by trying to compile a small sample.
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/fstream/compressor.c')
-rw-r--r-- | lib/fstream/compressor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/fstream/compressor.c b/lib/fstream/compressor.c index 903a5f7..48f9567 100644 --- a/lib/fstream/compressor.c +++ b/lib/fstream/compressor.c @@ -51,7 +51,7 @@ bool fstream_compressor_exists(int id) case FSTREAM_COMPRESSOR_XZ: return true; #endif -#ifdef WITH_ZSTD +#if defined(WITH_ZSTD) && defined(HAVE_ZSTD_STREAM) case FSTREAM_COMPRESSOR_ZSTD: return true; #endif |