Date: Wed, 2 Jun 2010 17:24:41 +0000 (UTC) From: Rafal Jaworowski <raj@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r208750 - head/sys/contrib/libfdt Message-ID: <201006021724.o52HOfAw019176@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: raj Date: Wed Jun 2 17:24:41 2010 New Revision: 208750 URL: http://svn.freebsd.org/changeset/base/208750 Log: Provide kernel level headers for the libfdt code. Reviewed by: imp Sponsored by: The FreeBSD Foundation Modified: head/sys/contrib/libfdt/libfdt_env.h Modified: head/sys/contrib/libfdt/libfdt_env.h ============================================================================== --- head/sys/contrib/libfdt/libfdt_env.h Wed Jun 2 17:22:38 2010 (r208749) +++ head/sys/contrib/libfdt/libfdt_env.h Wed Jun 2 17:24:41 2010 (r208750) @@ -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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201006021724.o52HOfAw019176>