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:
Diffstat (limited to 'mono/mini/mini-posix.c')
-rw-r--r--mono/mini/mini-posix.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mono/mini/mini-posix.c b/mono/mini/mini-posix.c
index dc8a6f2a1ee..bbafa91581c 100644
--- a/mono/mini/mini-posix.c
+++ b/mono/mini/mini-posix.c
@@ -80,6 +80,7 @@
#include "debugger-agent.h"
#include "mini-runtime.h"
#include "jit-icalls.h"
+#include <glib.h>
#ifdef HOST_DARWIN
#include <mach/mach.h>
@@ -578,7 +579,7 @@ clock_init_for_profiler (MonoProfilerSampleMode mode)
* CLOCK_PROCESS_CPUTIME_ID clock but don't actually support it. For
* those systems, we fall back to CLOCK_MONOTONIC if we get EINVAL.
*/
- if (clock_nanosleep (CLOCK_PROCESS_CPUTIME_ID, TIMER_ABSTIME, &ts, NULL) != EINVAL) {
+ if (g_clock_nanosleep (CLOCK_PROCESS_CPUTIME_ID, TIMER_ABSTIME, &ts, NULL) != EINVAL) {
sampling_clock = CLOCK_PROCESS_CPUTIME_ID;
break;
}
@@ -602,7 +603,7 @@ clock_sleep_ns_abs (guint64 ns_abs)
then.tv_nsec = ns_abs % 1000000000;
do {
- ret = clock_nanosleep (sampling_clock, TIMER_ABSTIME, &then, NULL);
+ ret = g_clock_nanosleep (sampling_clock, TIMER_ABSTIME, &then, NULL);
if (ret != 0 && ret != EINTR)
g_error ("%s: clock_nanosleep () returned %d", __func__, ret);