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)
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to