aboutsummaryrefslogtreecommitdiff
path: root/lib/fstream/compress/ostream_compressor.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/fstream/compress/ostream_compressor.c')
-rw-r--r--lib/fstream/compress/ostream_compressor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/fstream/compress/ostream_compressor.c b/lib/fstream/compress/ostream_compressor.c
index 7ea7919..30ff7eb 100644
--- a/lib/fstream/compress/ostream_compressor.c
+++ b/lib/fstream/compress/ostream_compressor.c
@@ -78,7 +78,7 @@ ostream_t *ostream_compressor_create(ostream_t *strm, int comp_id)
#endif
break;
case FSTREAM_COMPRESSOR_ZSTD:
-#ifdef WITH_ZSTD
+#if defined(WITH_ZSTD) && defined(HAVE_ZSTD_STREAM)
comp = ostream_zstd_create(strm->get_filename(strm));
#endif
break;