X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fcompat%2Ftime.h;h=72a9afff47ef0a4db433bc3f78d995b98ef0d3fd;hb=3e6e0df2f8f9f23d252c2508b6d741916dfcc4b3;hp=f00a54127c7369a2c7612847d642cd4504de61c7;hpb=ab5be9fa2eb5ba9600a82cd18fd3cfcbac69169a;p=lttng-tools.git diff --git a/src/common/compat/time.h b/src/common/compat/time.h index f00a54127..72a9afff4 100644 --- a/src/common/compat/time.h +++ b/src/common/compat/time.h @@ -16,7 +16,7 @@ typedef uint64_t timer_t; #include #include -#include +#include #undef NSEC_PER_SEC #undef NSEC_PER_MSEC @@ -53,8 +53,8 @@ int lttng_clock_gettime(clockid_t clk_id, struct timespec *tp) goto deallocate; } - tp->tv_sec = now.tv_sec; - tp->tv_nsec = now.tv_nsec; + tp->tv_sec = now.tv_sec; + tp->tv_nsec = now.tv_nsec; deallocate: mach_port_deallocate(mach_task_self(), clock);