From 66ffb275faa0656cfc7fd51292357989719b8d5a Mon Sep 17 00:00:00 2001 From: Hans-Christian Noren Egtvedt Date: Tue, 17 Oct 2017 09:11:44 +0200 Subject: [PATCH] missing: fix bpf() define for Tilera __NR_bpf syscall uses the default generic value for Tilera, e.g. 280. --- src/basic/missing_syscall.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/basic/missing_syscall.h b/src/basic/missing_syscall.h index fd82c11e94..5138a74a06 100644 --- a/src/basic/missing_syscall.h +++ b/src/basic/missing_syscall.h @@ -334,6 +334,8 @@ static inline ssize_t copy_file_range(int fd_in, loff_t *off_in, # define __NR_bpf 349 # elif defined __s390__ # define __NR_bpf 351 +# elif defined __tilegx__ +# define __NR_bpf 280 # else # warning "__NR_bpf not defined for your architecture" # endif