summaryrefslogtreecommitdiffstats
path: root/c/src/exec/sapi/include/rtems
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/exec/sapi/include/rtems')
-rw-r--r--c/src/exec/sapi/include/rtems/config.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/c/src/exec/sapi/include/rtems/config.h b/c/src/exec/sapi/include/rtems/config.h
index d43839e6d6..7ff0f9f485 100644
--- a/c/src/exec/sapi/include/rtems/config.h
+++ b/c/src/exec/sapi/include/rtems/config.h
@@ -21,7 +21,18 @@
extern "C" {
#endif
+/*
+ * This is kind of kludgy but it allows targets to totally ignore the
+ * POSIX API safely.
+ */
+
+#ifdef RTEMS_POSIX_API
#include <rtems/posix/config.h>
+#else
+
+typedef void *posix_api_configuration_table;
+#endif
+
#include <rtems/rtems/config.h>
/* XXX <rtems/rtems/config.h> should cover these