summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs/marisa/files/marisa-0.2.6-loong_word_size.patch')
-rw-r--r--dev-libs/marisa/files/marisa-0.2.6-loong_word_size.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/dev-libs/marisa/files/marisa-0.2.6-loong_word_size.patch b/dev-libs/marisa/files/marisa-0.2.6-loong_word_size.patch
new file mode 100644
index 000000000000..2be85ba04ee4
--- /dev/null
+++ b/dev-libs/marisa/files/marisa-0.2.6-loong_word_size.patch
@@ -0,0 +1,12 @@
+--- a/include/marisa/base.h
++++ b/include/marisa/base.h
+@@ -31,7 +31,8 @@
+ #if defined(_WIN64) || defined(__amd64__) || defined(__x86_64__) || \
+ defined(__ia64__) || defined(__ppc64__) || defined(__powerpc64__) || \
+ defined(__sparc64__) || defined(__mips64__) || defined(__aarch64__) || \
+- defined(__s390x__) || (defined(__riscv) && (__riscv_xlen == 64))
++ defined(__s390x__) || (defined(__riscv) && (__riscv_xlen == 64)) || \
++ defined(__loongarch64)
+ #define MARISA_WORD_SIZE 64
+ #else // defined(_WIN64), etc.
+ #define MARISA_WORD_SIZE 32