diff options
author | Eric Andersen <andersen@codepoet.org> | 2006-12-08 00:31:47 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2006-12-08 00:31:47 +0000 |
commit | 7d5f81d30145f6ed1aede73491776371c7458c47 (patch) | |
tree | 38a6a28d9b1923c826e67d643447f1c718b0b2f7 /libc | |
parent | feda5d48d9b89eb560cb4afd857c1809ac25348a (diff) |
__resolv_lock is supposed to be shared, not static
Diffstat (limited to 'libc')
-rw-r--r-- | libc/inet/resolv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/inet/resolv.c b/libc/inet/resolv.c index fab534ddf..16d640e4f 100644 --- a/libc/inet/resolv.c +++ b/libc/inet/resolv.c @@ -155,6 +155,7 @@ #include <sys/un.h> #include <bits/uClibc_mutex.h> +__UCLIBC_MUTEX_EXTERN(__resolv_lock); libc_hidden_proto(memcpy) libc_hidden_proto(memset) @@ -209,7 +210,6 @@ libc_hidden_proto(__ctype_b_loc) libc_hidden_proto(__ctype_b) #endif -__UCLIBC_MUTEX_EXTERN(__resolv_lock); #define MAX_RECURSE 5 @@ -1011,7 +1011,7 @@ char * __nameserver[MAX_SERVERS]; int __searchdomains; char * __searchdomain[MAX_SEARCH]; -__UCLIBC_MUTEX_STATIC(__resolv_lock, PTHREAD_MUTEX_INITIALIZER); +__UCLIBC_MUTEX_INIT(__resolv_lock, PTHREAD_MUTEX_INITIALIZER); /* * we currently read formats not quite the same as that on normal |