X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fjournal%2Fcompress.c;h=316c1a66e3e2f13f9608feca7ef0f3195eff3d8d;hp=93ac92aaadb8ffb9f4615f1d1b86325fd77d9e96;hb=3b1a55e110ab387a8d213581983e20c0a63d7894;hpb=6017365a1d0c1c78fc34a7da63768ee5df5da511;ds=sidebyside diff --git a/src/journal/compress.c b/src/journal/compress.c index 93ac92aaa..316c1a66e 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)