diff options
author | Adam Duskett <Aduskett@gmail.com> | 2018-05-02 04:04:50 -0400 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2018-06-28 09:24:07 +0200 |
commit | 34d5313740180b0455f0e43bcff401fb6bbd258f (patch) | |
tree | 4850379950df0ae02daf92a94fac1f02f3bdd55c /src/basic | |
parent | 84343de19cf997ed0b8288ec1ff5b1d33c265993 (diff) |
add __nr_statx defines for extra architectures (#8872)
This includes:
- arm
- arm64
- alpha
- powerpc64
- sparc
Taken from kernel 4.16.6
(cherry picked from commit 773c84349d80c7a6f818f5909a160ddb7337987f)
Diffstat (limited to 'src/basic')
-rw-r--r-- | src/basic/missing_syscall.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/basic/missing_syscall.h b/src/basic/missing_syscall.h index 018566887..38e9e263e 100644 --- a/src/basic/missing_syscall.h +++ b/src/basic/missing_syscall.h @@ -418,8 +418,14 @@ static inline int missing_bpf(int cmd, union bpf_attr *attr, size_t size) { #if !HAVE_STATX # ifndef __NR_statx -# if defined __i386__ +# if defined __aarch64__ || defined __arm__ +# define __NR_statx 397 +# elif defined __alpha__ +# define __NR_statx 522 +# elif defined __i386__ || defined __powerpc64__ # define __NR_statx 383 +# elif defined __sparc__ +# define __NR_statx 360 # elif defined __x86_64__ # define __NR_statx 332 # else |