From 7490f18b8a29d0265aea2247f95aea827c8564d5 Mon Sep 17 00:00:00 2001 From: Simon Schubert Date: Wed, 11 Jan 2006 02:38:02 +0000 Subject: [PATCH] Use _KERNEL_STRUCTURES where appropriate --- sys/sys/bus.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/sys/sys/bus.h b/sys/sys/bus.h index b6cbe289ad..fb35c5a34e 100644 --- a/sys/sys/bus.h +++ b/sys/sys/bus.h @@ -24,17 +24,19 @@ * SUCH DAMAGE. * * $FreeBSD: src/sys/sys/bus.h,v 1.30.2.5 2004/03/17 17:54:25 njl Exp $ - * $DragonFly: src/sys/sys/bus.h,v 1.19 2005/11/28 17:13:47 dillon Exp $ + * $DragonFly: src/sys/sys/bus.h,v 1.20 2006/01/11 02:38:02 corecode Exp $ */ #ifndef _SYS_BUS_H_ #define _SYS_BUS_H_ -#ifdef _KERNEL +#if defined(_KERNEL) || defined(_KERNEL_STRUCTURES) #include #include +#ifdef _KERNEL #include +#endif /* * Forward declarations @@ -96,6 +98,9 @@ struct resource_list_entry { }; SLIST_HEAD(resource_list, resource_list_entry); +#endif /* _KERNEL || _KERNEL_STRUCTURES */ +#ifdef _KERNEL + /* * Initialise a resource list. */ -- 2.41.0