summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2004-10-11 21:56:27 +0000
committerpeter <peter@FreeBSD.org>2004-10-11 21:56:27 +0000
commit9213c0d6bf4181ed08a1cf6f9721baf1e826b019 (patch)
tree310131ecb94db8d34523d4e82eab40b68ee1d0c4 /sys
parent46a2ab741b6075ccd621c6f18ab775221c1b28cd (diff)
downloadFreeBSD-src-9213c0d6bf4181ed08a1cf6f9721baf1e826b019.zip
FreeBSD-src-9213c0d6bf4181ed08a1cf6f9721baf1e826b019.tar.gz
Belatedly catch up with the dev_t/cdev changes from a few months back.
Extract the struct cdev pointer and the tty device from inside rather than incorrectly casting the 'struct cdev *' pointer to a 'dev_t' int. Not that this was particularly important since it was only used for reading vmcore files.
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/conf.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/sys/conf.h b/sys/sys/conf.h
index 6b26205..1a0dcea 100644
--- a/sys/sys/conf.h
+++ b/sys/sys/conf.h
@@ -42,6 +42,9 @@
#ifdef _KERNEL
#include <sys/eventhandler.h>
+#else
+#include <sys/queue.h>
+#endif
struct tty;
struct disk;
@@ -107,6 +110,8 @@ struct cdev {
#define si_snapdata __si_u.__si_disk.__sid_snapdata
#define si_copyonwrite __si_u.__si_disk.__sid_copyonwrite
+#ifdef _KERNEL
+
/*
* Definitions of device driver entry switches
*/
OpenPOWER on IntegriCloud