OSDN Git Service

fix a few build errors for the no threads case
authorAustin Foxley <austinf@cetoncorp.com>
Wed, 28 Apr 2010 17:35:55 +0000 (10:35 -0700)
committerAustin Foxley <austinf@cetoncorp.com>
Wed, 28 Apr 2010 17:35:55 +0000 (10:35 -0700)
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
libc/inet/getaddrinfo.c
libc/sysdeps/linux/common/bits/uClibc_mutex.h

index 8c7f7b9..cdfdb72 100644 (file)
@@ -56,7 +56,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #include <assert.h>
 #include <errno.h>
 #include <netdb.h>
+#ifdef __UCLIBC_HAS_TLS__
 #include <tls.h>
+#endif
 #include <resolv.h>
 #include <stdio.h>
 #include <stdlib.h>
index 3e3d006..0b4acd7 100644 (file)
 #define __UCLIBC_MUTEX_STATIC(M,I)                     extern void *__UCLIBC_MUTEX_DUMMY_ ## M
 #define __UCLIBC_MUTEX_EXTERN(M)                       extern void *__UCLIBC_MUTEX_DUMMY_ ## M
 
+#define __UCLIBC_MUTEX_INIT_VAR(M)                                     ((void)0)
 #define __UCLIBC_MUTEX_LOCK_CANCEL_UNSAFE(M)           ((void)0)
 #define __UCLIBC_MUTEX_UNLOCK_CANCEL_UNSAFE(M)         ((void)0)
 #define __UCLIBC_MUTEX_TRYLOCK_CANCEL_UNSAFE(M)                (0)     /* Always succeed? */