diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2006-02-01 11:19:52 +0000 |
---|---|---|
committer | Peter S. Mazinger <ps.m@gmx.net> | 2006-02-01 11:19:52 +0000 |
commit | bb9b5b976f12b36e1d8c0781b4688c1427cf148d (patch) | |
tree | f63f996c075d01b9bce8dd507cccf44d74127cab /libc | |
parent | 6bd321dfd676de41918f9cf0ee6ecbda8a25a5a9 (diff) |
Go __malloc_lock, go ...
Diffstat (limited to 'libc')
-rw-r--r-- | libc/stdlib/malloc-standard/malloc.c | 1 | ||||
-rw-r--r-- | libc/stdlib/malloc-standard/malloc.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/libc/stdlib/malloc-standard/malloc.c b/libc/stdlib/malloc-standard/malloc.c index b4b1216ed..10d421330 100644 --- a/libc/stdlib/malloc-standard/malloc.c +++ b/libc/stdlib/malloc-standard/malloc.c @@ -19,6 +19,7 @@ #ifdef __UCLIBC_HAS_THREADS__ pthread_mutex_t __malloc_lock = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; +libc_hidden_data_def(__malloc_lock) #endif /* diff --git a/libc/stdlib/malloc-standard/malloc.h b/libc/stdlib/malloc-standard/malloc.h index 6c3067e5d..628b47dc3 100644 --- a/libc/stdlib/malloc-standard/malloc.h +++ b/libc/stdlib/malloc-standard/malloc.h @@ -31,6 +31,7 @@ libc_hidden_proto(abort) #ifdef __UCLIBC_HAS_THREADS__ # include <pthread.h> extern pthread_mutex_t __malloc_lock; +libc_hidden_proto(__malloc_lock) #endif #define LOCK __pthread_mutex_lock(&__malloc_lock) #define UNLOCK __pthread_mutex_unlock(&__malloc_lock) |