From dbb30e2607ac72d9419df3ba96c423a4a8532d5b Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 18 Oct 2017 09:17:32 +0200 Subject: posix: Fix POSIX disabled build Update #2514. --- cpukit/posix/include/rtems/posix/pthreadattrimpl.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cpukit/posix/include/rtems/posix/pthreadattrimpl.h') diff --git a/cpukit/posix/include/rtems/posix/pthreadattrimpl.h b/cpukit/posix/include/rtems/posix/pthreadattrimpl.h index 1e5105deab..4a565fbb38 100644 --- a/cpukit/posix/include/rtems/posix/pthreadattrimpl.h +++ b/cpukit/posix/include/rtems/posix/pthreadattrimpl.h @@ -25,7 +25,9 @@ #include #include #include +#if defined(RTEMS_POSIX_API) #include +#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 /** @} */ -- cgit v1.2.3