diff options
author | raj <raj@FreeBSD.org> | 2010-06-02 17:24:41 +0000 |
---|---|---|
committer | raj <raj@FreeBSD.org> | 2010-06-02 17:24:41 +0000 |
commit | 425b04623b930a86b902765da5190dabff5ff8ba (patch) | |
tree | 567bcdac7da3f657a04e4bade5e8709a50db19c8 | |
parent | b640c371d6bd20c9b8a60c0a3f7f825dff193d86 (diff) | |
download | FreeBSD-src-425b04623b930a86b902765da5190dabff5ff8ba.zip FreeBSD-src-425b04623b930a86b902765da5190dabff5ff8ba.tar.gz |
Provide kernel level headers for the libfdt code.
Reviewed by: imp
Sponsored by: The FreeBSD Foundation
-rw-r--r-- | sys/contrib/libfdt/libfdt_env.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/contrib/libfdt/libfdt_env.h b/sys/contrib/libfdt/libfdt_env.h index 449bf60..7ac3f52 100644 --- a/sys/contrib/libfdt/libfdt_env.h +++ b/sys/contrib/libfdt/libfdt_env.h @@ -1,9 +1,17 @@ #ifndef _LIBFDT_ENV_H #define _LIBFDT_ENV_H +#ifdef _KERNEL +#include <sys/cdefs.h> +#include <sys/param.h> +#include <sys/types.h> +#include <sys/systm.h> +#include <sys/stdint.h> +#else #include <stddef.h> #include <stdint.h> #include <string.h> +#endif #define _B(n) ((unsigned long long)((uint8_t *)&x)[n]) static inline uint32_t fdt32_to_cpu(uint32_t x) |