summaryrefslogtreecommitdiffstats
path: root/rtemsbsd/rtems/rtems-bsd-cxx.cc
diff options
context:
space:
mode:
Diffstat (limited to 'rtemsbsd/rtems/rtems-bsd-cxx.cc')
-rw-r--r--rtemsbsd/rtems/rtems-bsd-cxx.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/rtemsbsd/rtems/rtems-bsd-cxx.cc b/rtemsbsd/rtems/rtems-bsd-cxx.cc
index 8ae13d47..aadb25af 100644
--- a/rtemsbsd/rtems/rtems-bsd-cxx.cc
+++ b/rtemsbsd/rtems/rtems-bsd-cxx.cc
@@ -32,6 +32,8 @@
#define __STDC_LIMIT_MACROS
#define __STDC_CONSTANT_MACROS
+#include <machine/rtems-bsd-kernel-space.h>
+
/*
* Include this outside the extern "C", since we may include <atomic> via
* <rtems.h> which uses templates.
@@ -40,10 +42,9 @@
extern "C" {
-#include <machine/rtems-bsd-kernel-space.h>
-
#include <sys/param.h>
#include <sys/types.h>
+#include <sys/lock.h>
#include <sys/mbuf.h>
#include <sys/malloc.h>
#include <sys/kernel.h>