summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-04-16 12:12:53 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-08-21 10:33:50 +0200
commita7a0a36461e3d405c35838f04000019ce07728e8 (patch)
tree19ae81b58527b93316f8afc69763e604b5f4a534
parent1bb280010237a62d674a0c7025f688c7ec4bd2e1 (diff)
downloadrtems-a7a0a36461e3d405c35838f04000019ce07728e8.tar.bz2
config: Conditionally include header
-rw-r--r--cpukit/include/rtems/confdefs/threads.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/cpukit/include/rtems/confdefs/threads.h b/cpukit/include/rtems/confdefs/threads.h
index 12726487ba..33b8c5cee2 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