summaryrefslogtreecommitdiff
path: root/lang/mono/files/patch-mono_utils_mono-threads.c
diff options
context:
space:
mode:
Diffstat (limited to 'lang/mono/files/patch-mono_utils_mono-threads.c')
-rw-r--r--lang/mono/files/patch-mono_utils_mono-threads.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/lang/mono/files/patch-mono_utils_mono-threads.c b/lang/mono/files/patch-mono_utils_mono-threads.c
new file mode 100644
index 000000000000..c4aad112edf6
--- /dev/null
+++ b/lang/mono/files/patch-mono_utils_mono-threads.c
@@ -0,0 +1,11 @@
+--- mono/utils/mono-threads.c.orig 2017-07-20 18:10:59 UTC
++++ mono/utils/mono-threads.c
+@@ -1243,7 +1243,7 @@ mono_thread_info_sleep (guint32 ms, gboo
+ } while (1);
+ } else {
+ int ret;
+-#if defined (__linux__) && !defined(PLATFORM_ANDROID)
++#if defined(HAVE_CLOCK_NANOSLEEP) && !defined(PLATFORM_ANDROID)
+ struct timespec start, target;
+
+ /* Use clock_nanosleep () to prevent time drifting problems when nanosleep () is interrupted by signals */