mirror of
https://github.com/systemd/systemd.git
synced 2024-11-02 19:21:53 +03:00
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
This commit is contained in:
parent
a42cdff19f
commit
74a550c5d8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user