From 45663443eb2b377e6171529380fee312f1adcdf4 Mon Sep 17 00:00:00 2001 From: Jia Tan Date: Tue, 13 Feb 2024 22:37:07 +0800 Subject: liblzma: Fix build error if only RISC-V BCJ filter is enabled. If any other BCJ filter was enabled for encoding or decoding, then this was not a problem. --- src/liblzma/common/string_conversion.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/liblzma') diff --git a/src/liblzma/common/string_conversion.c b/src/liblzma/common/string_conversion.c index ad8241e2..0bc459bc 100644 --- a/src/liblzma/common/string_conversion.c +++ b/src/liblzma/common/string_conversion.c @@ -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", -- cgit v1.2.3