mirror of
https://github.com/opnsense/src.git
synced 2026-04-27 09:06:49 -04:00
Check O_NONBLOCK not IO_NDELAY.
Don't include vnode.h
This commit is contained in:
parent
fe8fab266b
commit
4c4a94cefe
2 changed files with 1 additions and 3 deletions
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue