diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2011-04-08 22:17:59 +0200 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2012-06-15 14:00:36 +0200 |
commit | ab5add209a3a7c8323586ff651e1ca6b7bafe06a (patch) | |
tree | 7117b49b74364aea0a4498993cd56a778a065bdf | |
parent | a0fa1f8acfc5997b8865f299815751d6f20ef581 (diff) |
_exit.c: include the proper headers
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
-rw-r--r-- | libc/sysdeps/linux/common/_exit.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/libc/sysdeps/linux/common/_exit.c b/libc/sysdeps/linux/common/_exit.c index 51117d109..2196a98fe 100644 --- a/libc/sysdeps/linux/common/_exit.c +++ b/libc/sysdeps/linux/common/_exit.c @@ -7,25 +7,17 @@ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. */ -#include <features.h> -#include <errno.h> #include <unistd.h> -#include <sys/types.h> +#include <stdlib.h> #include <sys/syscall.h> -#ifdef __UCLIBC_HAS_THREADS_NATIVE__ -#include <sysdep.h> -#endif - -void attribute_noreturn _exit(int status) +void _exit(int status) { /* The loop is added only to keep gcc happy. */ while(1) { -#ifdef __UCLIBC_HAS_THREADS_NATIVE__ -# ifdef __NR_exit_group +#if defined __NR_exit_group && defined __UCLIBC_HAS_THREADS_NATIVE__ INLINE_SYSCALL(exit_group, 1, status); -# endif #endif INLINE_SYSCALL(exit, 1, status); } |