[rtems commit] posix: Fix POSIX disabled build

Sebastian Huber sebh at rtems.org
Wed Oct 18 07:34:14 UTC 2017


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Wed Oct 18 09:17:32 2017 +0200

posix: Fix POSIX disabled build

Update #2514.

---

 cpukit/posix/include/rtems/posix/pthreadattrimpl.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/cpukit/posix/include/rtems/posix/pthreadattrimpl.h b/cpukit/posix/include/rtems/posix/pthreadattrimpl.h
index 1e5105d..4a565fb 100644
--- a/cpukit/posix/include/rtems/posix/pthreadattrimpl.h
+++ b/cpukit/posix/include/rtems/posix/pthreadattrimpl.h
@@ -25,7 +25,9 @@
 #include <rtems/score/basedefs.h>
 #include <rtems/score/assert.h>
 #include <rtems/posix/priorityimpl.h>
+#if defined(RTEMS_POSIX_API)
 #include <rtems/posix/threadsup.h>
+#endif
 
 #ifdef __cplusplus
 extern "C" {
@@ -63,6 +65,7 @@ RTEMS_INLINE_ROUTINE void _POSIX_Threads_Initialize_attributes(
   );
 }
 
+#if defined(RTEMS_POSIX_API)
 RTEMS_INLINE_ROUTINE void _POSIX_Threads_Get_sched_param_sporadic(
   const Thread_Control    *the_thread,
   const POSIX_API_Control *api,
@@ -78,6 +81,7 @@ RTEMS_INLINE_ROUTINE void _POSIX_Threads_Get_sched_param_sporadic(
   param->sched_ss_init_budget = api->Sporadic.sched_ss_init_budget;
   param->sched_ss_max_repl = api->Sporadic.sched_ss_max_repl;
 }
+#endif
 
 /** @} */
 




More information about the vc mailing list