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:
rittera 2006-05-26 19:31:35 +00:00
parent 60d227b1f8
commit 2fb24c8b6d

View File

@ -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