summaryrefslogtreecommitdiffstats
path: root/nsprpub/pr/include/md/_linux.h
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-12-15 01:40:18 +0100
committerwolfbeast <mcwerewolf@gmail.com>2018-12-15 01:40:18 +0100
commit09ef48bd005a7f9e97a3fe797a079fcf2b5e58d3 (patch)
treeb6ae903223a8a30b9f49b1769f5cb856ab41a9bc /nsprpub/pr/include/md/_linux.h
parent023af95abeb4a9bd61665f37fc8dec173e0f2f4a (diff)
downloadUXP-09ef48bd005a7f9e97a3fe797a079fcf2b5e58d3.tar
UXP-09ef48bd005a7f9e97a3fe797a079fcf2b5e58d3.tar.gz
UXP-09ef48bd005a7f9e97a3fe797a079fcf2b5e58d3.tar.lz
UXP-09ef48bd005a7f9e97a3fe797a079fcf2b5e58d3.tar.xz
UXP-09ef48bd005a7f9e97a3fe797a079fcf2b5e58d3.zip
Update NSPR to 4.20
Diffstat (limited to 'nsprpub/pr/include/md/_linux.h')
-rw-r--r--nsprpub/pr/include/md/_linux.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/nsprpub/pr/include/md/_linux.h b/nsprpub/pr/include/md/_linux.h
index b4b298b71..2370ab831 100644
--- a/nsprpub/pr/include/md/_linux.h
+++ b/nsprpub/pr/include/md/_linux.h
@@ -57,6 +57,10 @@
#define _PR_SI_ARCHITECTURE "m32r"
#elif defined(__or1k__)
#define _PR_SI_ARCHITECTURE "or1k"
+#elif defined(__riscv) && (__riscv_xlen == 32)
+#define _PR_SI_ARCHITECTURE "riscv32"
+#elif defined(__riscv) && (__riscv_xlen == 64)
+#define _PR_SI_ARCHITECTURE "riscv64"
#else
#error "Unknown CPU architecture"
#endif