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/inet/in6_addr.c | 4 +--- libc/inet/resolv.c | 2 ++ 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'libc/inet') diff --git a/libc/inet/in6_addr.c b/libc/inet/in6_addr.c index a5303da43..c2ab375e6 100644 --- a/libc/inet/in6_addr.c +++ b/libc/inet/in6_addr.c @@ -24,12 +24,10 @@ #ifdef __UCLIBC_HAS_IPV6__ const struct in6_addr in6addr_any = { { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } } }; -//libc_hidden_proto(in6addr_any) -//libc_hidden_def(in6addr_any) libc_hidden_proto(in6addr_loopback) const struct in6_addr in6addr_loopback = { { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1 } } }; -libc_hidden_def(in6addr_loopback) +libc_hidden_data_def(in6addr_loopback) #endif /* __UCLIBC_HAS_IPV6__ */ diff --git a/libc/inet/resolv.c b/libc/inet/resolv.c index 885413db8..9b9a42aa3 100644 --- a/libc/inet/resolv.c +++ b/libc/inet/resolv.c @@ -237,6 +237,7 @@ extern char * __searchdomain[MAX_SEARCH] attribute_hidden; #ifdef __UCLIBC_HAS_THREADS__ # include extern pthread_mutex_t __resolv_lock; +libc_hidden_proto(__resolv_lock) #endif #define BIGLOCK __pthread_mutex_lock(&__resolv_lock) #define BIGUNLOCK __pthread_mutex_unlock(&__resolv_lock) @@ -1021,6 +1022,7 @@ char * __searchdomain[MAX_SEARCH]; #ifdef __UCLIBC_HAS_THREADS__ # include pthread_mutex_t __resolv_lock = PTHREAD_MUTEX_INITIALIZER; +libc_hidden_data_def(__resolv_lock) #endif /* -- cgit v1.2.3