[rtems commit] config: Conditionally include header

Sebastian Huber sebh at rtems.org
Fri Aug 21 08:34:20 UTC 2020


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Thu Apr 16 12:12:53 2020 +0200

config: Conditionally include header

---

 cpukit/include/rtems/confdefs/threads.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/cpukit/include/rtems/confdefs/threads.h b/cpukit/include/rtems/confdefs/threads.h
index 1272648..33b8c5c 100644
--- a/cpukit/include/rtems/confdefs/threads.h
+++ b/cpukit/include/rtems/confdefs/threads.h
@@ -48,9 +48,12 @@
 #include <rtems/confdefs/scheduler.h>
 #include <rtems/confdefs/unlimited.h>
 #include <rtems/score/thread.h>
-#include <rtems/posix/threadsup.h>
 #include <rtems/rtems/tasksdata.h>
 
+#ifdef RTEMS_POSIX_API
+  #include <rtems/posix/threadsup.h>
+#endif
+
 #ifndef CONFIGURE_MAXIMUM_TASKS
   #define CONFIGURE_MAXIMUM_TASKS 0
 #endif



More information about the vc mailing list