From 62a21af8006ab04282fdc354c5b4dc765f56d058 Mon Sep 17 00:00:00 2001 From: Carmelo Amoroso Date: Wed, 9 Jul 2008 16:47:01 +0000 Subject: BIG BIG commit: all left files merged from trunk [rev 22714]. Currenntly NPTL sh4 port build and work fine. All committed to allow Khem Ray working on a working branch to integrate the ARM nptl port. MIPS nptl port not tested but should still building and working fine. There are some other part non yet merged with trunk (misc/internals and some headers file that need some more work). Signed-off-by: Carmelo Amoroso --- libc/misc/pthread/weaks.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'libc/misc/pthread/weaks.c') diff --git a/libc/misc/pthread/weaks.c b/libc/misc/pthread/weaks.c index 1d4f05d05..580c3eb07 100644 --- a/libc/misc/pthread/weaks.c +++ b/libc/misc/pthread/weaks.c @@ -17,7 +17,6 @@ write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#define _GNU_SOURCE #include /* Weaks for internal library use only. @@ -29,17 +28,15 @@ * if it gets linked in. */ -static int __pthread_return_0 (void); static int __pthread_return_0 (void) { return 0; } +static void __pthread_return_void (void) { return; } weak_alias (__pthread_return_0, __pthread_mutex_init) weak_alias (__pthread_return_0, __pthread_mutex_lock) weak_alias (__pthread_return_0, __pthread_mutex_trylock) weak_alias (__pthread_return_0, __pthread_mutex_unlock) - -weak_alias (__pthread_return_0, _pthread_cleanup_push_defer) -weak_alias (__pthread_return_0, _pthread_cleanup_pop_restore) - +weak_alias (__pthread_return_void, _pthread_cleanup_push_defer) +weak_alias (__pthread_return_void, _pthread_cleanup_pop_restore) #ifdef __UCLIBC_HAS_THREADS_NATIVE__ weak_alias (__pthread_return_0, __pthread_mutexattr_init) weak_alias (__pthread_return_0, __pthread_mutexattr_destroy) -- cgit v1.2.3