mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-02-23 00:00:02 +03:00
fix check for SYS_random
This commit is contained in:
parent
3a59ff72a0
commit
0abf87f973
@ -10,7 +10,7 @@
|
||||
#include <sys/syscall.h>
|
||||
#include <linux/bug.h>
|
||||
|
||||
#ifdef __NR_getrandom
|
||||
#ifdef SYS_getrandom
|
||||
static inline int getrandom(void *buf, size_t buflen, unsigned int flags)
|
||||
{
|
||||
return syscall(SYS_getrandom, buf, buflen, flags);
|
||||
|
@ -120,7 +120,7 @@ static void sched_init(void)
|
||||
rcu_register_thread();
|
||||
}
|
||||
|
||||
#ifndef __NR_getrandom
|
||||
#ifndef SYS_getrandom
|
||||
#include <fcntl.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
|
Loading…
Reference in New Issue
Block a user