mirror of
https://github.com/systemd/systemd.git
synced 2024-12-05 08:13:48 +08:00
fix #ifdef
This commit is contained in:
parent
da625e4b80
commit
92261977d8
@ -180,7 +180,7 @@ enum {
|
|||||||
};
|
};
|
||||||
|
|
||||||
#define HEADER_COMPATIBLE_ANY HEADER_COMPATIBLE_SEALED
|
#define HEADER_COMPATIBLE_ANY HEADER_COMPATIBLE_SEALED
|
||||||
#if HAVE_GCRYPT
|
#ifdef HAVE_GCRYPT
|
||||||
# define HEADER_COMPATIBLE_SUPPORTED HEADER_COMPATIBLE_SEALED
|
# define HEADER_COMPATIBLE_SUPPORTED HEADER_COMPATIBLE_SEALED
|
||||||
#else
|
#else
|
||||||
# define HEADER_COMPATIBLE_SUPPORTED 0
|
# define HEADER_COMPATIBLE_SUPPORTED 0
|
||||||
|
@ -2476,7 +2476,7 @@ int journal_file_open(
|
|||||||
f->flags = flags;
|
f->flags = flags;
|
||||||
f->prot = prot_from_flags(flags);
|
f->prot = prot_from_flags(flags);
|
||||||
f->writable = (flags & O_ACCMODE) != O_RDONLY;
|
f->writable = (flags & O_ACCMODE) != O_RDONLY;
|
||||||
#if defined(HAVE_LZ)
|
#if defined(HAVE_LZ4)
|
||||||
f->compress_lz4 = compress;
|
f->compress_lz4 = compress;
|
||||||
#elif defined(HAVE_XZ)
|
#elif defined(HAVE_XZ)
|
||||||
f->compress_xz = compress;
|
f->compress_xz = compress;
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
# define XZ_OK -EPROTONOSUPPORT
|
# define XZ_OK -EPROTONOSUPPORT
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_XZ
|
#ifdef HAVE_LZ4
|
||||||
# define LZ4_OK 0
|
# define LZ4_OK 0
|
||||||
#else
|
#else
|
||||||
# define LZ4_OK -EPROTONOSUPPORT
|
# define LZ4_OK -EPROTONOSUPPORT
|
||||||
|
Loading…
Reference in New Issue
Block a user