mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-23 17:34:00 +03:00
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.
This commit is contained in:
parent
f2d9751c59
commit
680a752c83
@ -123,7 +123,8 @@ int uname_architecture(void) {
|
||||
{ "crisv32", ARCHITECTURE_CRIS },
|
||||
#elif defined(__nios2__)
|
||||
{ "nios2", ARCHITECTURE_NIOS2 },
|
||||
#elif defined(__riscv__)
|
||||
#elif defined(__riscv__) || defined(__riscv)
|
||||
/* __riscv__ is obsolete, remove in 2018 */
|
||||
{ "riscv32", ARCHITECTURE_RISCV32 },
|
||||
{ "riscv64", ARCHITECTURE_RISCV64 },
|
||||
# if __SIZEOF_POINTER__ == 4
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user