summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/random/randomdev.c3
-rw-r--r--sys/dev/random/randomdev_soft.c1
2 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/random/randomdev.c b/sys/dev/random/randomdev.c
index 79dbe5f..e18be5a 100644
--- a/sys/dev/random/randomdev.c
+++ b/sys/dev/random/randomdev.c
@@ -45,7 +45,6 @@ __FBSDID("$FreeBSD$");
#include <sys/selinfo.h>
#include <sys/uio.h>
#include <sys/unistd.h>
-#include <sys/vnode.h>
#include <machine/bus.h>
#include <machine/cpu.h>
@@ -105,7 +104,7 @@ random_read(struct cdev *dev __unused, struct uio *uio, int flag)
/* Blocking logic */
while (!random_systat.seeded && !error) {
- if (flag & IO_NDELAY)
+ if (flag & O_NONBLOCK)
error = EWOULDBLOCK;
else {
printf("Entropy device is blocking.\n");
diff --git a/sys/dev/random/randomdev_soft.c b/sys/dev/random/randomdev_soft.c
index ebc6ba6..fb25d5c 100644
--- a/sys/dev/random/randomdev_soft.c
+++ b/sys/dev/random/randomdev_soft.c
@@ -46,7 +46,6 @@ __FBSDID("$FreeBSD$");
#include <sys/sysctl.h>
#include <sys/uio.h>
#include <sys/unistd.h>
-#include <sys/vnode.h>
#include <machine/bus.h>
#include <machine/cpu.h>
OpenPOWER on IntegriCloud