summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2014-10-29 20:30:25 -0400
committerDave Reisner <dreisner@archlinux.org>2014-10-29 20:41:46 -0400
commit74a550c5d8228e58b936dd70e183f633bf373632 (patch)
treeeb1de48b21053688133ef6e45c90a7153a636328 /src
parenta42cdff19f2d34f12ceca0f40707421a8aaa2c2f (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/shared/missing.h2
1 files changed, 1 insertions, 1 deletions
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