summaryrefslogtreecommitdiff
path: root/src/basic/architecture.h
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-02-10 17:48:22 -0500
committerLennart Poettering <lennart@poettering.net>2017-02-10 23:48:22 +0100
commit680a752c834aba1b66449d34f17dbe37e040f6b0 (patch)
tree2e3537e73b3963adbcad0ad9c8157e9351f3f425 /src/basic/architecture.h
parentf2d9751c5958f2510ae6aa606d44badfee18065d (diff)
basic/architecture: adjust Risc-V ifdef (#5304)
https://lists.freedesktop.org/archives/systemd-devel/2017-February/038286.html Let's keep both the old and new for now, so systemd builds correctly in either environment. Later on we should drop the old.
Diffstat (limited to 'src/basic/architecture.h')
-rw-r--r--src/basic/architecture.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/basic/architecture.h b/src/basic/architecture.h
index b329df2f6d..d6b8603b06 100644
--- a/src/basic/architecture.h
+++ b/src/basic/architecture.h
@@ -194,7 +194,8 @@ int uname_architecture(void);
#elif defined(__nios2__)
# define native_architecture() ARCHITECTURE_NIOS2
# define LIB_ARCH_TUPLE "nios2-linux-gnu"
-#elif defined(__riscv__)
+#elif defined(__riscv__) || defined(__riscv)
+ /* __riscv__ is obsolete, remove in 2018 */
# if __SIZEOF_POINTER__ == 4
# define native_architecture() ARCHITECTURE_RISCV32
# define LIB_ARCH_TUPLE "riscv32-linux-gnu"