summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/threadhandler.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-11-20 19:42:41 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-11-20 19:42:41 +0000
commitbd59b348c6407854eee75f06f6ff9868437205e9 (patch)
treedbb7348dc61b0c1ed51ce786175d315a0066a8cd /cpukit/score/src/threadhandler.c
parent2008-11-20 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-bd59b348c6407854eee75f06f6ff9868437205e9.tar.bz2
2008-11-20 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/newlibc_exit.c, score/src/threadhandler.c: Do not think about running init/fini on AVR. We do not know what mechanism it uses but this is not it.
Diffstat (limited to 'cpukit/score/src/threadhandler.c')
-rw-r--r--cpukit/score/src/threadhandler.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/score/src/threadhandler.c b/cpukit/score/src/threadhandler.c
index cc46f9801a..c93c7da0eb 100644
--- a/cpukit/score/src/threadhandler.c
+++ b/cpukit/score/src/threadhandler.c
@@ -30,8 +30,8 @@
#include <rtems/score/userext.h>
#include <rtems/score/wkspace.h>
-#if defined(__USE_INIT_FINI__)
-#include <stdlib.h> /* for atexit() */
+#if defined(__AVR__)
+ #undef __USE_INIT_FINI__
#endif
#if defined(__USE_INIT_FINI__)