]> git.sesse.net Git - bcachefs-tools-debian/commitdiff
fix check for SYS_random
authorKent Overstreet <kent.overstreet@gmail.com>
Wed, 10 Apr 2019 21:37:00 +0000 (17:37 -0400)
committerKent Overstreet <kent.overstreet@gmail.com>
Wed, 10 Apr 2019 21:37:00 +0000 (17:37 -0400)
include/linux/random.h
linux/sched.c

index 90fe574921ba28cccb7441ecf0b3a1c73cf88d7d..c38ae46d021f3a90b95460bb4b1b4b8954fa051a 100644 (file)
@@ -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);
index 353c11db38850e9b3892a54d69840fc80a56f273..d926e20f58d2cb37f814e300f667f55ff08a095c 100644 (file)
@@ -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>