From 15431d4fd8de67a03af4ee9cc8e774e1750e9da2 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Mon, 14 Sep 2020 20:25:10 +0200 Subject: Add zstd stream compressor implementation to libfstream Signed-off-by: David Oberhollenzer --- lib/fstream/compress/ostream_compressor.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/fstream/compress/ostream_compressor.c') diff --git a/lib/fstream/compress/ostream_compressor.c b/lib/fstream/compress/ostream_compressor.c index 5137f1d..d1d55e1 100644 --- a/lib/fstream/compress/ostream_compressor.c +++ b/lib/fstream/compress/ostream_compressor.c @@ -75,6 +75,11 @@ ostream_t *ostream_compressor_create(ostream_t *strm, int comp_id) case FSTREAM_COMPRESSOR_XZ: #ifdef WITH_XZ comp = ostream_xz_create(strm->get_filename(strm)); +#endif + break; + case FSTREAM_COMPRESSOR_ZSTD: +#ifdef WITH_ZSTD + comp = ostream_zstd_create(strm->get_filename(strm)); #endif break; default: -- cgit v1.2.3