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/waitpid.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'libc/sysdeps/linux/common/waitpid.c') diff --git a/libc/sysdeps/linux/common/waitpid.c b/libc/sysdeps/linux/common/waitpid.c index 16075cad9..e46499377 100644 --- a/libc/sysdeps/linux/common/waitpid.c +++ b/libc/sysdeps/linux/common/waitpid.c @@ -10,10 +10,13 @@ #include #include -/* libc_hidden_proto(wait4) */ - __pid_t waitpid(__pid_t pid, int *wait_stat, int options) { return wait4(pid, wait_stat, options, NULL); } +#ifndef __LINUXTHREADS_OLD__ libc_hidden_def(waitpid) +#else +libc_hidden_weak(waitpid) +strong_alias(waitpid,__libc_waitpid) +#endif -- cgit v1.2.3