From 74a550c5d8228e58b936dd70e183f633bf373632 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Wed, 29 Oct 2014 20:30:25 -0400 Subject: missing.h: fix wrong __NR_getrandom syscall def 278 is vmsplice on x86_64. 318 is what we want: http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/arch/x86/syscalls/syscall_64.tbl --- src/shared/missing.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/shared') diff --git a/src/shared/missing.h b/src/shared/missing.h index 00e02871d2..85d3fec33c 100644 --- a/src/shared/missing.h +++ b/src/shared/missing.h @@ -136,7 +136,7 @@ static inline int memfd_create(const char *name, unsigned int flags) { #ifndef __NR_getrandom # if defined __x86_64__ -# define __NR_getrandom 278 +# define __NR_getrandom 318 # else # warning "__NR_getrandom unknown for your architecture" # define __NR_getrandom 0xffffffff -- cgit v1.2.3-54-g00ecf