Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
#include <bits/sigcontextinfo.h>
#include <bits/pthreadtypes.h>
-#ifdef USE_TLS
+#ifdef __UCLIBC_HAS_TLS__
#include <tls.h>
#endif
#include "descr.h"
# define LIBC_CANCEL_HANDLED() /* Nothing. */
#endif
-extern int * __libc_pthread_init (const struct pthread_functions *functions);
-
#if !defined NOT_IN_libc && !defined FLOATING_STACKS
# ifdef SHARED
# define thread_self() \
# endif
#endif
-#ifndef USE_TLS
+#ifndef __UCLIBC_HAS_TLS__
# define __manager_thread (&__pthread_manager_thread)
#else
# define __manager_thread __pthread_manager_threadp
/* Variable in libc.so. */
extern struct pthread_functions __libc_pthread_functions attribute_hidden;
+extern int * __libc_pthread_init (const struct pthread_functions *functions);
+
#endif /* pthread-functions.h */