[rtems commit] posix: Fix build with POSIX API disabled

Sebastian Huber sebh at rtems.org
Thu Oct 25 08:06:08 UTC 2018


Module:    rtems
Branch:    master
Commit:    4a7be22b5a711bf007cd7b77de54eb45fb30e6ee
Changeset: http://git.rtems.org/rtems/commit/?id=4a7be22b5a711bf007cd7b77de54eb45fb30e6ee

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Thu Oct 25 10:03:46 2018 +0200

posix: Fix build with POSIX API disabled

Update #2514.

---

 cpukit/include/rtems/config.h | 14 +-------------
 1 file changed, 1 insertion(+), 13 deletions(-)

diff --git a/cpukit/include/rtems/config.h b/cpukit/include/rtems/config.h
index 248ace0..9cc4115 100644
--- a/cpukit/include/rtems/config.h
+++ b/cpukit/include/rtems/config.h
@@ -44,20 +44,8 @@ extern "C" {
   _Objects_Maximum_per_allocation(resource)
 
 #include <rtems/score/watchdog.h>
-
-/*
- *  This is kind of kludgy but it allows targets to totally ignore the
- *  optional APIs like POSIX safely.
- */
-
-#ifdef RTEMS_POSIX_API
-#include <rtems/posix/config.h>
-#else
-typedef void *posix_api_configuration_table;
-#endif
-
 #include <rtems/rtems/config.h>
-
+#include <rtems/posix/config.h>
 #include <rtems/extension.h>
 #if defined(RTEMS_MULTIPROCESSING)
 #include <rtems/score/mpci.h>




More information about the vc mailing list