summaryrefslogtreecommitdiff
path: root/src/journal/compress.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-07-11 10:42:06 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-07-11 10:42:27 -0400
commit3b1a55e110ab387a8d213581983e20c0a63d7894 (patch)
tree972b5eca785f511c41d96a3f14b172c5f9180b5f /src/journal/compress.c
parent6017365a1d0c1c78fc34a7da63768ee5df5da511 (diff)
Fix build without any compression enabled
Diffstat (limited to 'src/journal/compress.c')
-rw-r--r--src/journal/compress.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/journal/compress.c b/src/journal/compress.c
index 93ac92aaad..316c1a66e3 100644
--- a/src/journal/compress.c
+++ b/src/journal/compress.c
@@ -343,6 +343,7 @@ int decompress_startswith(int compression,
}
int compress_stream_xz(int fdf, int fdt, off_t max_bytes) {
+#ifdef HAVE_XZ
_cleanup_(lzma_end) lzma_stream s = LZMA_STREAM_INIT;
lzma_ret ret;
@@ -414,6 +415,9 @@ int compress_stream_xz(int fdf, int fdt, off_t max_bytes) {
}
}
}
+#else
+ return -EPROTONOSUPPORT;
+#endif
}
#define LZ4_BUFSIZE (512*1024)