about summary refs log tree commit diff
path: root/malloc/thread-m.h
diff options
context:
space:
mode:
Diffstat (limited to 'malloc/thread-m.h')
-rw-r--r--malloc/thread-m.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/malloc/thread-m.h b/malloc/thread-m.h
index bb9cba599e..1598db8ee7 100644
--- a/malloc/thread-m.h
+++ b/malloc/thread-m.h
@@ -88,8 +88,9 @@ typedef pthread_mutex_t	mutex_t;
 
 #endif /* MUTEX_INITIALIZER && PTHREAD_MUTEX_INITIALIZER */
 
+#ifndef NO_THREADS
 
-/* thread specific data */
+/* thread specific data for glibc */
 
 #include <bits/libc-tsd.h>
 
@@ -99,6 +100,7 @@ __libc_tsd_define (, MALLOC)	/* declaration/common definition */
 #define tsd_setspecific(key, data)	__libc_tsd_set (MALLOC, (data))
 #define tsd_getspecific(key, vptr)	((vptr) = __libc_tsd_get (MALLOC))
 
+#endif
 
 #elif defined(USE_PTHREADS) /* Posix threads */