From 53a66016cd5b19c00469b8265eb7a187d3eda5c0 Mon Sep 17 00:00:00 2001 From: Joern Rennecke Date: Thu, 10 Sep 2009 01:29:09 +0000 Subject: Support for ARCompact architecture. --- newlib/libc/stdlib/exit.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'newlib/libc/stdlib/exit.c') diff --git a/newlib/libc/stdlib/exit.c b/newlib/libc/stdlib/exit.c index 195b724..7648091 100644 --- a/newlib/libc/stdlib/exit.c +++ b/newlib/libc/stdlib/exit.c @@ -62,5 +62,9 @@ _DEFUN (exit, (code), if (_GLOBAL_REENT->__cleanup) (*_GLOBAL_REENT->__cleanup) (_GLOBAL_REENT); +#ifdef REENTRANT_SYSCALLS_PROVIDED + _exit_r (_GLOBAL_REENT, code); +#else _exit (code); +#endif } -- cgit v1.1