aboutsummaryrefslogtreecommitdiff
path: root/lib/fstream/compress/zstd.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/fstream/compress/zstd.c')
-rw-r--r--lib/fstream/compress/zstd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/fstream/compress/zstd.c b/lib/fstream/compress/zstd.c
index f4f7f86..c0b002e 100644
--- a/lib/fstream/compress/zstd.c
+++ b/lib/fstream/compress/zstd.c
@@ -8,6 +8,7 @@
#include <zstd.h>
+#ifdef HAVE_ZSTD_STREAM
typedef struct {
ostream_comp_t base;
@@ -90,3 +91,4 @@ ostream_comp_t *ostream_zstd_create(const char *filename)
base->cleanup = cleanup;
return base;
}
+#endif /* HAVE_ZSTD_STREAM */