projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix: redefinition of USEC_PER_SEC macro on macOS
[lttng-tools.git]
/
src
/
common
/
time.h
diff --git
a/src/common/time.h
b/src/common/time.h
index dc07633e968b41eb8d7e2387f78a5aa43c749ac4..60d0a9bd5dcd8aa7faa56e8577d2e1f2e381ce0f 100644
(file)
--- a/
src/common/time.h
+++ b/
src/common/time.h
@@
-27,7
+27,9
@@
#define NSEC_PER_SEC 1000000000ULL
#define NSEC_PER_MSEC 1000000ULL
#define NSEC_PER_USEC 1000ULL
+#ifndef USEC_PER_SEC
#define USEC_PER_SEC 1000000ULL
+#endif
#define USEC_PER_MSEC 1000ULL
#define SEC_PER_MINUTE 60ULL
This page took
0.02477 seconds
and
4
git commands to generate.