blob: c4aad112edf6534f56d61a90eff6a5567e0de008 (
plain)
1
2
3
4
5
6
7
8
9
10
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 */
|