From c68dcf7b484e9669fe70ac5683cfee5f719e0ea4 Mon Sep 17 00:00:00 2001 From: tmm Date: Fri, 18 Oct 2002 15:21:09 +0000 Subject: Add an #ifdef _KERNEL to make it possible to include this file from userland (to get the typedefs). --- sys/dev/ofw/openfirm.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'sys/dev/ofw') diff --git a/sys/dev/ofw/openfirm.h b/sys/dev/ofw/openfirm.h index f02a42c..903b452 100644 --- a/sys/dev/ofw/openfirm.h +++ b/sys/dev/ofw/openfirm.h @@ -64,17 +64,18 @@ * Prototypes for Openfirmware Interface Routines */ +typedef unsigned long cell_t; + +typedef unsigned int ihandle_t; +typedef unsigned int phandle_t; + +#ifdef _KERNEL #include #include #include MALLOC_DECLARE(M_OFWPROP); -typedef unsigned long cell_t; - -typedef unsigned int ihandle_t; -typedef unsigned int phandle_t; - /* * Stuff that is used by the OpenFirmware code. */ @@ -137,4 +138,5 @@ void OF_set_symbol_lookup(void *, void *); /* Time function */ int OF_milliseconds(void); +#endif /* _KERNEL */ #endif /* _OPENFIRM_H_ */ -- cgit v1.1