diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2019-04-10 17:37:00 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2019-04-10 17:37:00 -0400 |
commit | 0abf87f97337a589cb91429b215bf9a34e35870e (patch) | |
tree | 77a48b17dff38b6f1b21e8438a72876a01f67ff4 | |
parent | 3a59ff72a0b9bf3ee4cea7a886616edf5ab4f331 (diff) |
fix check for SYS_random
-rw-r--r-- | include/linux/random.h | 2 | ||||
-rw-r--r-- | linux/sched.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/random.h b/include/linux/random.h index 90fe5749..c38ae46d 100644 --- a/include/linux/random.h +++ b/include/linux/random.h @@ -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); diff --git a/linux/sched.c b/linux/sched.c index 353c11db..d926e20f 100644 --- a/linux/sched.c +++ b/linux/sched.c @@ -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> |