summaryrefslogtreecommitdiffstats
path: root/cpukit/sapi/include/confdefs.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2007-06-20 22:22:16 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2007-06-20 22:22:16 +0000
commit5a8bc445743bfc349d668a636556740cdbf460f4 (patch)
tree7f14174f18b67450851187c3936a8a68460f2b11 /cpukit/sapi/include/confdefs.h
parent2007-06-20 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-5a8bc445743bfc349d668a636556740cdbf460f4.tar.bz2
2007-06-20 Joel Sherrill <joel.sherrill@OARcorp.com>
* sapi/include/confdefs.h: Do not instantiate initialization thas/thread pointer tables for an API that is not configured.
Diffstat (limited to 'cpukit/sapi/include/confdefs.h')
-rw-r--r--cpukit/sapi/include/confdefs.h32
1 files changed, 18 insertions, 14 deletions
diff --git a/cpukit/sapi/include/confdefs.h b/cpukit/sapi/include/confdefs.h
index 663bf4c048..bde070772c 100644
--- a/cpukit/sapi/include/confdefs.h
+++ b/cpukit/sapi/include/confdefs.h
@@ -1219,13 +1219,15 @@ rtems_configuration_table Configuration = {
* If the user has configured a set of POSIX Initialization Threads,
* then we need to install the code that runs that loop.
*/
-#ifdef CONFIGURE_INIT
- #ifdef CONFIGURE_POSIX_INIT_THREAD_TABLE
- void _POSIX_Threads_Initialize_user_threads_body(void);
- void (*_POSIX_Threads_Initialize_user_threads_p)(void) =
- _POSIX_Threads_Initialize_user_threads_body;
- #else
- void (*_POSIX_Threads_Initialize_user_threads_p)(void) = NULL;
+#ifdef RTEMS_POSIX_API
+ #ifdef CONFIGURE_INIT
+ #ifdef CONFIGURE_POSIX_INIT_THREAD_TABLE
+ void _POSIX_Threads_Initialize_user_threads_body(void);
+ void (*_POSIX_Threads_Initialize_user_threads_p)(void) =
+ _POSIX_Threads_Initialize_user_threads_body;
+ #else
+ void (*_POSIX_Threads_Initialize_user_threads_p)(void) = NULL;
+ #endif
#endif
#endif
@@ -1233,13 +1235,15 @@ rtems_configuration_table Configuration = {
* If the user has configured a set of ITRON Initialization Tasks,
* then we need to install the code that runs that loop.
*/
-#ifdef CONFIGURE_INIT
- #ifdef CONFIGURE_ITRON_INIT_TASK_TABLE
- void _ITRON_Task_Initialize_user_tasks_body(void);
- void (*_ITRON_Initialize_user_tasks_p)(void) =
- _ITRON_Task_Initialize_user_tasks_body;
- #else
- void (*_ITRON_Initialize_user_tasks_p)(void) = NULL;
+#ifdef RTEMS_ITRON_API
+ #ifdef CONFIGURE_INIT
+ #ifdef CONFIGURE_ITRON_INIT_TASK_TABLE
+ void _ITRON_Task_Initialize_user_tasks_body(void);
+ void (*_ITRON_Initialize_user_tasks_p)(void) =
+ _ITRON_Task_Initialize_user_tasks_body;
+ #else
+ void (*_ITRON_Initialize_user_tasks_p)(void) = NULL;
+ #endif
#endif
#endif