projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix: time redefinition warnings on macOS builds
[lttng-tools.git]
/
src
/
common
/
compat
/
time.h
diff --git
a/src/common/compat/time.h
b/src/common/compat/time.h
index f51075dc39c3e35a3ebd13ad0fc9b61b0bb2a7e4..c8d5859ff9ef22ea8b48c5d3429752342ed89120 100644
(file)
--- a/
src/common/compat/time.h
+++ b/
src/common/compat/time.h
@@
-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.024579 seconds
and
4
git commands to generate.