* Copyright 2013 Xamarin, Inc (http://www.xamarin.com)
*/
-#include <config.h>
#include <mono/utils/mach-support.h>
#include "mono-tls.h"
* wrappers and managed allocators, both of which are not aot-ed by default.
* So far, we never supported inlined fast tls on full-aot systems.
*/
-#ifdef HAVE_KW_THREAD
-#define USE_KW_THREAD
-#endif
#ifdef USE_KW_THREAD
gpointer
mono_tls_get_tls_addr (MonoTlsKey key)
{
+#ifdef HAVE_GET_TLS_ADDR
if (key == TLS_KEY_LMF) {
#if defined(USE_KW_THREAD)
return &mono_tls_lmf;
return mono_mach_get_tls_address_from_thread (pthread_self (), mono_tls_key_lmf);
#endif
}
+#endif
/* Implement if we ever need for other targets/keys */
g_assert_not_reached ();
return NULL;