missing: fix bpf() define for Tilera
authorHans-Christian Noren Egtvedt <hegtvedt@cisco.com>
Tue, 17 Oct 2017 07:11:44 +0000 (09:11 +0200)
committerHenrik Grindal Bakken <hgb@ifi.uio.no>
Wed, 10 Jan 2018 09:59:01 +0000 (10:59 +0100)
__NR_bpf syscall uses the default generic value for Tilera, e.g. 280.

src/basic/missing_syscall.h

index fd82c11..5138a74 100644 (file)
@@ -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