]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
liblzma: Fix build error if only RISC-V BCJ filter is enabled.
authorJia Tan <jiat0218@gmail.com>
Tue, 13 Feb 2024 14:37:07 +0000 (22:37 +0800)
committerJia Tan <jiat0218@gmail.com>
Tue, 13 Feb 2024 15:33:21 +0000 (23:33 +0800)
If any other BCJ filter was enabled for encoding or decoding, then this
was not a problem.

src/liblzma/common/string_conversion.c

index ad8241e24a58e305adec76d1758915943cd7f6ea..0bc459bc3878ddf0389a898cd31e3495119c80da 100644 (file)
@@ -250,7 +250,9 @@ static const char *parse_options(const char **const str, const char *str_end,
                || defined(HAVE_ENCODER_IA64) \
                || defined(HAVE_DECODER_IA64) \
                || defined(HAVE_ENCODER_SPARC) \
-               || defined(HAVE_DECODER_SPARC)
+               || defined(HAVE_DECODER_SPARC) \
+               || defined(HAVE_ENCODER_RISCV) \
+               || defined(HAVE_DECODER_RISCV)
 static const option_map bcj_optmap[] = {
        {
                .name = "start",