diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-08-22 16:55:56 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-09-20 12:49:04 +0200 |
commit | 1b124055ad3f6d0259f358404af24338b3339d51 (patch) | |
tree | 1434fe4cc00bff63b8df659164bf3a35ca5b4be0 | |
parent | 84f9f30c240449c0dd2548a4f0dbf9554263a674 (diff) | |
download | systemd-1b124055ad3f6d0259f358404af24338b3339d51.tar.gz |
basic/missing_syscall: fix syscall numbers for arm64 :(
(cherry picked from commit b6ce3d2c0152a17210bb7fd31bb92a289f181a57)
(cherry picked from commit ed3f97f9625f6349045a4b80581bbf76cc4fcdbd)
(cherry picked from commit 77dddecfd0ca9200d8d241d3baf8a00cb640bd75)
(cherry picked from commit fec0bb6df444c8dd9067ec93e1398476a5fef858)
-rw-r--r-- | src/basic/missing_syscall.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/basic/missing_syscall.h b/src/basic/missing_syscall.h index 8879422ce9..42f0ee4e7a 100644 --- a/src/basic/missing_syscall.h +++ b/src/basic/missing_syscall.h @@ -420,7 +420,7 @@ static inline int missing_bpf(int cmd, union bpf_attr *attr, size_t size) { # elif defined __arm__ # define __NR_pkey_mprotect 394 # elif defined __aarch64__ -# define __NR_pkey_mprotect 394 +# define __NR_pkey_mprotect 288 # elif defined __powerpc__ # define __NR_pkey_mprotect 386 # elif defined __s390__ @@ -449,7 +449,9 @@ static inline int missing_bpf(int cmd, union bpf_attr *attr, size_t size) { # if defined __NR_statx # undef __NR_statx # endif -# if defined __aarch64__ || defined __arm__ +# if defined __aarch64__ +# define __NR_statx 291 +# elif defined __arm__ # define __NR_statx 397 # elif defined __alpha__ # define __NR_statx 522 |