From 147041d26029fabdb35b596a1d3bcbb40c3de975 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Wed, 25 Feb 2009 11:06:29 +0000 Subject: Reinstate __libc_foo's needed for linuxthreads.old. Now they are only enabled if linuxthreads.old are selected. --- libc/sysdeps/linux/common/pause.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'libc/sysdeps/linux/common/pause.c') diff --git a/libc/sysdeps/linux/common/pause.c b/libc/sysdeps/linux/common/pause.c index 7f2ca57a5..30963d623 100644 --- a/libc/sysdeps/linux/common/pause.c +++ b/libc/sysdeps/linux/common/pause.c @@ -10,17 +10,18 @@ #define __UCLIBC_HIDE_DEPRECATED__ #include #include +#include -#ifdef __NR_pause +#ifdef __LINUXTHREADS_OLD__ +extern __typeof(pause) weak_function pause; +strong_alias(pause,__libc_pause) +#endif +#ifdef __NR_pause _syscall0(int, pause) - #else - -#include int pause(void) { return (__sigpause(sigblock(0), 0)); } - #endif -- cgit v1.2.3