Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZoltan Varga <vargaz@gmail.com>2013-04-09 11:26:05 +0400
committerZoltan Varga <vargaz@gmail.com>2013-04-09 11:26:18 +0400
commit88bd84a855fe0dd75a84943106c4622ba231f32f (patch)
tree00cb4b138826575137870659889204b9cf584cb6
parent8f776d77c2079565e43d3d98aaac28ccf93a5676 (diff)
Hopefully fix the windows build.mono-3.0.9
-rw-r--r--mono/metadata/threads.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/mono/metadata/threads.c b/mono/metadata/threads.c
index ad6e0b2a310..969124f2fda 100644
--- a/mono/metadata/threads.c
+++ b/mono/metadata/threads.c
@@ -798,6 +798,18 @@ mono_thread_create (MonoDomain *domain, gpointer func, gpointer arg)
mono_thread_create_internal (domain, func, arg, FALSE, FALSE, 0);
}
+#if defined(HOST_WIN32) && defined(__GNUC__)
+static __inline__ __attribute__((always_inline))
+/* This is not defined by gcc */
+unsigned long long
+__readfsdword (unsigned long long offset)
+{
+ unsigned long long value;
+ __asm__("movl %%fs:%a[offset], %k[value]" : [value] "=q" (value) : [offset] "irm" (offset));
+ return value;
+}
+#endif
+
/*
* mono_thread_get_stack_bounds:
*