From 59b2ad62db3a8f452ec7d315459a4cc5616c5724 Mon Sep 17 00:00:00 2001 From: Gabriele Giorgetti Date: Thu, 18 Sep 2003 20:52:24 +0000 Subject: [PATCH] Fix build with old libc. --- scheduler/pthread.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/scheduler/pthread.c b/scheduler/pthread.c index 8760cbdbc95..66fa86957ce 100644 --- a/scheduler/pthread.c +++ b/scheduler/pthread.c @@ -123,6 +123,11 @@ int *__h_errno_location(void) return &descr->thread_h_errno; } +struct __res_state *__res_state(void) +{ + pthread_descr descr = __pthread_thread_self(); + return &descr->res_state; +} static inline void writejump( const char *symbol, void *dest ) { @@ -260,12 +265,6 @@ static struct pthread_functions libc_pthread_functions; strong_alias(__pthread_thread_self, pthread_thread_self); -struct __res_state *__res_state(void) -{ - pthread_descr descr = __pthread_thread_self(); - return &descr->res_state; -} - /* redefine this to prevent libpthread from overriding our function pointers */ int *__libc_pthread_init( const struct pthread_functions *funcs ) {