Fix: time constants already defined on macOS
[lttng-tools.git] / src / common / compat / time.h
index 17447b3724bee5ef4c0bf0a30a080317f40d7748..593a92ab074f410b2e55ac14dfb93706818e9a0b 100644 (file)
@@ -31,10 +31,12 @@ typedef uint64_t timer_t;
 
 #include <mach/mach.h>
 #include <mach/clock.h>
+#include <errno.h>
 
 #undef NSEC_PER_SEC
 #undef NSEC_PER_MSEC
 #undef NSEC_PER_USEC
+#undef USEC_PER_SEC
 
 #endif /* __APPLE__ */
 
This page took 0.023761 seconds and 4 git commands to generate.