Port: Add OSX clock_gettime compat
[lttng-tools.git] / tests / utils / utils.c
index e7bd9ce9fbeef567bd8abb79434f8d728f6813c3..7aa8667d4f4520891d4b5d013ae752641897dde8 100644 (file)
@@ -16,7 +16,7 @@
  */
 
 #include <stdint.h>
-#include <time.h>
+#include <common/compat/time.h>
 #include <assert.h>
 #include <unistd.h>
 #include <stdio.h>
@@ -43,7 +43,7 @@ int usleep_safe(useconds_t usec)
        struct timespec t1, t2;
        int64_t time_remaining_ns = (int64_t) usec * (int64_t) NSEC_PER_USEC;
 
-       ret = clock_gettime(CLOCK_MONOTONIC, &t1);
+       ret = lttng_clock_gettime(CLOCK_MONOTONIC, &t1);
        if (ret) {
                ret = -1;
                perror("clock_gettime");
This page took 0.024921 seconds and 5 git commands to generate.