aboutsummaryrefslogtreecommitdiff
path: root/sys/contrib/octeon-sdk/cvmx-helper-board.c
diff options
context:
space:
mode:
authorJuli Mallett <jmallett@FreeBSD.org>2012-03-11 06:49:31 +0000
committerJuli Mallett <jmallett@FreeBSD.org>2012-03-11 06:49:31 +0000
commit9261550cf34f318ebc693af1bdbd615217bf1a21 (patch)
tree8457f1bde1d3bb8b9623317843d939c49d6ce84e /sys/contrib/octeon-sdk/cvmx-helper-board.c
parent57a8a8ff311459dd41b87ee3f8996272facd5216 (diff)
downloadsrc-9261550cf34f318ebc693af1bdbd615217bf1a21.tar.gz
src-9261550cf34f318ebc693af1bdbd615217bf1a21.zip
Do not try to use libfdt in FreeBSD.
Notes
Notes: svn path=/head/; revision=232815
Diffstat (limited to 'sys/contrib/octeon-sdk/cvmx-helper-board.c')
-rw-r--r--sys/contrib/octeon-sdk/cvmx-helper-board.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/contrib/octeon-sdk/cvmx-helper-board.c b/sys/contrib/octeon-sdk/cvmx-helper-board.c
index 74502b638d94..d9fa7ba7ac28 100644
--- a/sys/contrib/octeon-sdk/cvmx-helper-board.c
+++ b/sys/contrib/octeon-sdk/cvmx-helper-board.c
@@ -73,11 +73,13 @@
#include "cvmx-helper-util.h"
#include "cvmx-helper-board.h"
#include "cvmx-gpio.h"
+#if !defined(__FreeBSD__) || !defined(_KERNEL)
#ifdef __U_BOOT__
# include <libfdt.h>
#else
# include "libfdt/libfdt.h"
#endif
+#endif
#include "cvmx-swap.h"
#endif