From ab5add209a3a7c8323586ff651e1ca6b7bafe06a Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Fri, 8 Apr 2011 22:17:59 +0200 Subject: _exit.c: include the proper headers Signed-off-by: Peter S. Mazinger Signed-off-by: Bernhard Reutner-Fischer --- libc/sysdeps/linux/common/_exit.c | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'libc/sysdeps') 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 -#include #include -#include +#include #include -#ifdef __UCLIBC_HAS_THREADS_NATIVE__ -#include -#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); } -- cgit v1.2.3