diff options
Diffstat (limited to 'mono/utils/mono-threads.c')
-rw-r--r-- | mono/utils/mono-threads.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mono/utils/mono-threads.c b/mono/utils/mono-threads.c index 8fb5deefd86..57a7849e6ac 100644 --- a/mono/utils/mono-threads.c +++ b/mono/utils/mono-threads.c @@ -33,6 +33,7 @@ #include <mono/utils/mono-threads-debug.h> #include <mono/utils/os-event.h> #include <mono/utils/w32api.h> +#include <glib.h> #include <errno.h> #include <mono/utils/mono-errno.h> @@ -1750,7 +1751,7 @@ mono_thread_info_sleep (guint32 ms, gboolean *alerted) } do { - ret = clock_nanosleep (CLOCK_MONOTONIC, TIMER_ABSTIME, &target, NULL); + ret = g_clock_nanosleep (CLOCK_MONOTONIC, TIMER_ABSTIME, &target, NULL); } while (ret != 0); #elif HOST_WIN32 Sleep (ms); |