aboutsummaryrefslogtreecommitdiff
path: root/src/liblzma
diff options
context:
space:
mode:
authorJia Tan <jiat0218@gmail.com>2024-02-13 22:37:07 +0800
committerJia Tan <jiat0218@gmail.com>2024-02-13 23:33:21 +0800
commit45663443eb2b377e6171529380fee312f1adcdf4 (patch)
tree86fbf4044621ebf4ca1c165ac957c9bc05b5299e /src/liblzma
parentTranslations: Update the Korean translation. (diff)
downloadxz-45663443eb2b377e6171529380fee312f1adcdf4.tar.xz
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.
Diffstat (limited to 'src/liblzma')
-rw-r--r--src/liblzma/common/string_conversion.c4
1 files changed, 3 insertions, 1 deletions
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",