Added an #ifdef _KERNEL around the #include <sys/device.h>. This is needed
because nbcompat.h is included from the user-level ndiscvt utility, which wouldn't compile due to the indirect inclusion of sys/device.h.
This commit is contained in:
parent
60d227b1f8
commit
2fb24c8b6d
@ -5,7 +5,11 @@
|
||||
#include <sys/lkm.h>
|
||||
#include <sys/cdefs.h>
|
||||
#include <sys/queue.h>
|
||||
#ifdef _KERNEL
|
||||
#include <sys/device.h>
|
||||
#else
|
||||
typedef struct device *device_t;
|
||||
#endif
|
||||
|
||||
#define CTLFLAG_RW CTLFLAG_READWRITE
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user