[rtems commit] posix: Hide POSIX_API_Control by default

Sebastian Huber sebh at rtems.org
Tue Oct 30 06:12:26 UTC 2018


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

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

posix: Hide POSIX_API_Control by default

Update #2514.

---

 cpukit/include/rtems/posix/pthreadimpl.h | 2 ++
 cpukit/include/rtems/posix/threadsup.h   | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/cpukit/include/rtems/posix/pthreadimpl.h b/cpukit/include/rtems/posix/pthreadimpl.h
index d900207..be44716 100644
--- a/cpukit/include/rtems/posix/pthreadimpl.h
+++ b/cpukit/include/rtems/posix/pthreadimpl.h
@@ -48,6 +48,7 @@ extern "C" {
  */
 extern Thread_Information _POSIX_Threads_Information;
 
+#if defined(RTEMS_POSIX_API)
 RTEMS_INLINE_ROUTINE void _POSIX_Threads_Sporadic_timer_insert(
   Thread_Control    *the_thread,
   POSIX_API_Control *api
@@ -62,6 +63,7 @@ RTEMS_INLINE_ROUTINE void _POSIX_Threads_Sporadic_timer_insert(
     _Timespec_To_ticks( &api->Sporadic.sched_ss_repl_period )
   );
 }
+#endif
 
 void _POSIX_Threads_Sporadic_timer( Watchdog_Control *watchdog );
 
diff --git a/cpukit/include/rtems/posix/threadsup.h b/cpukit/include/rtems/posix/threadsup.h
index d3ee5b2..127d897 100644
--- a/cpukit/include/rtems/posix/threadsup.h
+++ b/cpukit/include/rtems/posix/threadsup.h
@@ -35,6 +35,7 @@
 extern "C" {
 #endif
 
+#if defined(RTEMS_POSIX_API)
 /**
  * This defines the POSIX API support structure associated with
  * each thread in a system with POSIX configured.
@@ -87,6 +88,7 @@ typedef struct {
    */
   Thread_Action           Signal_action;
 } POSIX_API_Control;
+#endif
 
 /** @} */
 




More information about the vc mailing list