From f45706ca6ade259d2cf9397c35b0135991470197 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Wed, 1 Feb 2006 09:22:45 +0000 Subject: global data uses libc_hidden_data_def, convert all -I hope- and add some new --- libc/stdlib/atexit.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libc/stdlib') diff --git a/libc/stdlib/atexit.c b/libc/stdlib/atexit.c index 75972b57d..959d08edb 100644 --- a/libc/stdlib/atexit.c +++ b/libc/stdlib/atexit.c @@ -49,6 +49,7 @@ libc_hidden_proto(_exit) #ifdef __UCLIBC_HAS_THREADS__ # include extern pthread_mutex_t mylock; +libc_hidden_proto(mylock) #endif #define LOCK __pthread_mutex_lock(&mylock) #define UNLOCK __pthread_mutex_unlock(&mylock) @@ -314,6 +315,7 @@ extern void weak_function _stdio_term(void) attribute_hidden; attribute_hidden void (*__exit_cleanup) (int) = 0; #ifdef __UCLIBC_HAS_THREADS__ pthread_mutex_t mylock = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; +libc_hidden_data_def(mylock) #endif #ifdef __UCLIBC_CTOR_DTOR__ -- cgit v1.2.3