#ifndef _UST_CLOCK_H
#define _UST_CLOCK_H
-#include <time.h>
+#include <common/compat/time.h>
#include <sys/time.h>
#include <stdint.h>
#include <stddef.h>
{
struct timespec ts;
- if (clock_gettime(CLOCK_MONOTONIC, &ts)) {
+ if (lttng_clock_gettime(CLOCK_MONOTONIC, &ts)) {
/* TODO Report error cleanly up the chain. */
PERROR("clock_gettime CLOCK_MONOTONIC");
ts.tv_sec = 0;