mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-25 10:43:34 +08:00
Declare _errno, _h_errno, and _res unless we use TLS internally.
This commit is contained in:
parent
b50fca08b4
commit
04a7ed77c2
@ -38,6 +38,18 @@
|
||||
# error "This must not happen; new kernel assumed but old headers"
|
||||
#endif
|
||||
|
||||
#if !(USE_TLS && HAVE___THREAD)
|
||||
/* These variables are used by the setup code. */
|
||||
extern int _errno;
|
||||
extern int _h_errno;
|
||||
|
||||
/* We need the global/static resolver state here. */
|
||||
# include <resolv.h>
|
||||
# undef _res
|
||||
#endif
|
||||
|
||||
extern struct __res_state _res;
|
||||
|
||||
#ifdef USE_TLS
|
||||
|
||||
/* We need only a few variables. */
|
||||
@ -45,16 +57,6 @@ static pthread_descr manager_thread;
|
||||
|
||||
#else
|
||||
|
||||
/* These variables are used by the setup code. */
|
||||
extern int _errno;
|
||||
extern int _h_errno;
|
||||
|
||||
/* We need the global/static resolver state here. */
|
||||
#include <resolv.h>
|
||||
#undef _res
|
||||
|
||||
extern struct __res_state _res;
|
||||
|
||||
/* Descriptor of the initial thread */
|
||||
|
||||
struct _pthread_descr_struct __pthread_initial_thread = {
|
||||
|
Loading…
Reference in New Issue
Block a user