Fix: time redefinition warnings on macOS builds
[lttng-tools.git] / src / common / compat / time.h
index f51075dc39c3e35a3ebd13ad0fc9b61b0bb2a7e4..c8d5859ff9ef22ea8b48c5d3429752342ed89120 100644 (file)
@@ -32,6 +32,10 @@ typedef int clockid_t;
 #include <mach/mach.h>
 #include <mach/clock.h>
 
+#undef NSEC_PER_SEC
+#undef NSEC_PER_MSEC
+#undef NSEC_PER_USEC
+
 #define CLOCK_REALTIME CALENDAR_CLOCK
 #define CLOCK_MONOTONIC SYSTEM_CLOCK
 
This page took 0.022775 seconds and 4 git commands to generate.