summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2015-02-13 12:00:17 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2015-03-06 14:58:13 +0100
commit19adb93558be24e1366699a2728ca16a2af6d52a (patch)
treee8f92752991a0b5cc7d02fb5cee0366a0c1a239f
parentf59a2da89c3293dc5b1008f309aa055d6e9a3d9e (diff)
downloadrtems-libbsd-19adb93558be24e1366699a2728ca16a2af6d52a.tar.bz2
rtems-bsd-cxx.cc: Fix include order
-rw-r--r--rtemsbsd/rtems/rtems-bsd-cxx.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/rtemsbsd/rtems/rtems-bsd-cxx.cc b/rtemsbsd/rtems/rtems-bsd-cxx.cc
index db97b84d..a97a9de7 100644
--- a/rtemsbsd/rtems/rtems-bsd-cxx.cc
+++ b/rtemsbsd/rtems/rtems-bsd-cxx.cc
@@ -32,6 +32,12 @@
#define __STDC_LIMIT_MACROS
#define __STDC_CONSTANT_MACROS
+/*
+ * Include this outside the extern "C", since we may include <atomic> via
+ * <rtems.h> which uses templates.
+ */
+#include <rtems.h>
+
extern "C" {
#include <machine/rtems-bsd-kernel-space.h>