mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-25 22:40:05 +00:00
14 lines
227 B
C
14 lines
227 B
C
|
#include <tls.h>
|
||
|
|
||
|
#if defined HAVE___THREAD && defined HAVE_TLS_MODEL_ATTRIBUTE
|
||
|
extern __thread int tlsvar __attribute__((tls_model("initial-exec")));
|
||
|
#else
|
||
|
extern int tlsvar;
|
||
|
#endif
|
||
|
|
||
|
void *
|
||
|
in_dso (void)
|
||
|
{
|
||
|
return &tlsvar;
|
||
|
}
|