summaryrefslogtreecommitdiff
path: root/libc/stdlib
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-02-01 09:22:45 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-02-01 09:22:45 +0000
commitf45706ca6ade259d2cf9397c35b0135991470197 (patch)
treee21580a7be5c6ab7c2e0ddd7be61b6a2f9c23bf5 /libc/stdlib
parent2fe646ffaa4a775a63d850a3591824e5cb85d13c (diff)
global data uses libc_hidden_data_def, convert all -I hope- and add some new
Diffstat (limited to 'libc/stdlib')
-rw-r--r--libc/stdlib/atexit.c2
1 files changed, 2 insertions, 0 deletions
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 <pthread.h>
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__