1 2 3 4 5 6 7
#include <tls.h> #if defined HAVE___THREAD && defined HAVE_TLS_MODEL_ATTRIBUTE int __thread tlsvar; #else int tlsvar; #endif