OSDN Git Service

mkostemp: fix implementation
[uclinux-h8/uClibc.git] / test / tls / tst-tlsmod16b.c
1 #include <tls.h>
2
3 #if defined HAVE___THREAD && defined HAVE_TLS_MODEL_ATTRIBUTE
4 extern __thread int tlsvar __attribute__((tls_model("initial-exec")));
5 #else
6 extern int tlsvar;
7 #endif
8
9 void *
10 in_dso (void)
11 {
12   return &tlsvar;
13 }