diff options
author | tmm <tmm@FreeBSD.org> | 2002-10-18 15:21:09 +0000 |
---|---|---|
committer | tmm <tmm@FreeBSD.org> | 2002-10-18 15:21:09 +0000 |
commit | c68dcf7b484e9669fe70ac5683cfee5f719e0ea4 (patch) | |
tree | 8cbfc1254dd7ba9071a37e3cc282198e5359cc71 | |
parent | bede8be9eb8dd9075967e4774c7ee2e33cc80151 (diff) | |
download | FreeBSD-src-c68dcf7b484e9669fe70ac5683cfee5f719e0ea4.zip FreeBSD-src-c68dcf7b484e9669fe70ac5683cfee5f719e0ea4.tar.gz |
Add an #ifdef _KERNEL to make it possible to include this file from
userland (to get the typedefs).
-rw-r--r-- | sys/dev/ofw/openfirm.h | 12 |
1 files changed, 7 insertions, 5 deletions
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 <sys/cdefs.h> #include <sys/types.h> #include <sys/malloc.h> 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_ */ |