summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-10-25 10:26:40 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-10-29 10:33:38 +0100
commit033f31c8af6e742d3f56311b09b331ad0b222e3c (patch)
tree86e26a8883b410bed2cf11da1fd8142869b0a253
parentposix: Provide message queues by default (diff)
downloadrtems-033f31c8af6e742d3f56311b09b331ad0b222e3c.tar.bz2
posix: Hide POSIX_API_Control by default
Update #2514.
-rw-r--r--cpukit/include/rtems/posix/pthreadimpl.h2
-rw-r--r--cpukit/include/rtems/posix/threadsup.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/cpukit/include/rtems/posix/pthreadimpl.h b/cpukit/include/rtems/posix/pthreadimpl.h
index d900207fbd..be44716983 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 d3ee5b28bb..127d897531 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
/** @} */