mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-05 19:35:52 +03:00
Declare _errno, _h_errno, and _res unless we use TLS internally.
This commit is contained in:
@@ -38,13 +38,7 @@
|
|||||||
# error "This must not happen; new kernel assumed but old headers"
|
# error "This must not happen; new kernel assumed but old headers"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef USE_TLS
|
#if !(USE_TLS && HAVE___THREAD)
|
||||||
|
|
||||||
/* We need only a few variables. */
|
|
||||||
static pthread_descr manager_thread;
|
|
||||||
|
|
||||||
#else
|
|
||||||
|
|
||||||
/* These variables are used by the setup code. */
|
/* These variables are used by the setup code. */
|
||||||
extern int _errno;
|
extern int _errno;
|
||||||
extern int _h_errno;
|
extern int _h_errno;
|
||||||
@@ -52,9 +46,17 @@ extern int _h_errno;
|
|||||||
/* We need the global/static resolver state here. */
|
/* We need the global/static resolver state here. */
|
||||||
# include <resolv.h>
|
# include <resolv.h>
|
||||||
# undef _res
|
# undef _res
|
||||||
|
#endif
|
||||||
|
|
||||||
extern struct __res_state _res;
|
extern struct __res_state _res;
|
||||||
|
|
||||||
|
#ifdef USE_TLS
|
||||||
|
|
||||||
|
/* We need only a few variables. */
|
||||||
|
static pthread_descr manager_thread;
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
/* Descriptor of the initial thread */
|
/* Descriptor of the initial thread */
|
||||||
|
|
||||||
struct _pthread_descr_struct __pthread_initial_thread = {
|
struct _pthread_descr_struct __pthread_initial_thread = {
|
||||||
|
Reference in New Issue
Block a user