summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/newlibc_exit.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-08-18 19:18:52 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-08-18 19:18:52 +0000
commitf73fc29d6692e721e50a7a595d07faab29048a03 (patch)
treedc0b4c271eb1a035241fc9477db935a7e7163704 /cpukit/libcsupport/src/newlibc_exit.c
parent2008-08-18 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-f73fc29d6692e721e50a7a595d07faab29048a03.tar.bz2
2008-08-18 Joel Sherrill <joel.sherrill@oarcorp.com>
* itron/include/rtems/itron/task.h, itron/src/def_cyc.c, itron/src/task.c, libcsupport/src/newlibc_exit.c, libcsupport/src/sync.c, libfs/src/imfs/imfs_fchmod.c, posix/include/rtems/posix/pthread.h, posix/src/pthread.c, posix/src/sysconf.c, rtems/include/rtems/rtems/tasks.h, rtems/src/tasks.c, score/include/rtems/score/stack.h, score/inline/rtems/score/stack.inl, score/inline/rtems/score/thread.inl, score/src/threadhandler.c: Fix various nested-externs warnings.
Diffstat (limited to 'cpukit/libcsupport/src/newlibc_exit.c')
-rw-r--r--cpukit/libcsupport/src/newlibc_exit.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/cpukit/libcsupport/src/newlibc_exit.c b/cpukit/libcsupport/src/newlibc_exit.c
index 06fdab5cfa..68212b692e 100644
--- a/cpukit/libcsupport/src/newlibc_exit.c
+++ b/cpukit/libcsupport/src/newlibc_exit.c
@@ -121,6 +121,10 @@ void libc_wrapup(void)
#if !defined(RTEMS_UNIX)
#define EXIT_SYMBOL _exit
+
+ #if defined(__USE_INIT_FINI__)
+ extern void _fini( void );
+ #endif
#else
#define EXIT_SYMBOL exit
#endif
@@ -132,7 +136,6 @@ void EXIT_SYMBOL(int status)
* run the global destructors now.
*/
#if defined(__USE_INIT_FINI__)
- extern void _fini( void );
_fini();
#endif