summaryrefslogtreecommitdiffstats
path: root/sys/contrib/octeon-sdk
diff options
context:
space:
mode:
authorjmallett <jmallett@FreeBSD.org>2012-11-27 02:03:41 +0000
committerjmallett <jmallett@FreeBSD.org>2012-11-27 02:03:41 +0000
commitc60bc3766a0fc068cba3df0a3498d750ac0c2f2c (patch)
tree7427be5822e66f2627865ac3f0c8809fe16f6b95 /sys/contrib/octeon-sdk
parent35a10ad41d9e9d87f04d74558cd7ae53cd6f023b (diff)
downloadFreeBSD-src-c60bc3766a0fc068cba3df0a3498d750ac0c2f2c.zip
FreeBSD-src-c60bc3766a0fc068cba3df0a3498d750ac0c2f2c.tar.gz
Allow this file to build on FreeBSD.
Diffstat (limited to 'sys/contrib/octeon-sdk')
-rw-r--r--sys/contrib/octeon-sdk/cvmx-dma-engine.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/contrib/octeon-sdk/cvmx-dma-engine.c b/sys/contrib/octeon-sdk/cvmx-dma-engine.c
index 053c372..d17f60c 100644
--- a/sys/contrib/octeon-sdk/cvmx-dma-engine.c
+++ b/sys/contrib/octeon-sdk/cvmx-dma-engine.c
@@ -65,8 +65,10 @@
#include <asm/octeon/cvmx-pexp-defs.h>
#include <asm/octeon/cvmx-helper-cfg.h>
#else
+#if !defined(__FreeBSD__) || !defined(_KERNEL)
#include "executive-config.h"
#include "cvmx-config.h"
+#endif
#include "cvmx.h"
#include "cvmx-cmd-queue.h"
#include "cvmx-dma-engine.h"
OpenPOWER on IntegriCloud