chiark / gitweb /
journal: don't try to compress without XZ
[elogind.git] / src / journal / journal-file.c
index c8193baa3b517262b49b6b29c3588482b548a03a..8bd52733c97db551d04f86cd31cee63a18b0cd3c 100644 (file)
@@ -2021,7 +2021,9 @@ int journal_file_open(
         f->flags = flags;
         f->prot = prot_from_flags(flags);
         f->writable = (flags & O_ACCMODE) != O_RDONLY;
         f->flags = flags;
         f->prot = prot_from_flags(flags);
         f->writable = (flags & O_ACCMODE) != O_RDONLY;
+#ifdef HAVE_XZ
         f->compress = compress;
         f->compress = compress;
+#endif
         f->seal = seal;
 
         if (mmap_cache)
         f->seal = seal;
 
         if (mmap_cache)