projects
/
project
/
libubox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
uloop: make SIGCHLD signal handling optional
[project/libubox.git]
/
utils.h
diff --git
a/utils.h
b/utils.h
index
803150b
..
cd09cc0
100644
(file)
--- a/
utils.h
+++ b/
utils.h
@@
-57,7
+57,8
@@
extern int __BUILD_BUG_ON_CONDITION_FAILED;
#define BUILD_BUG_ON __BUILD_BUG_ON
#endif
-#ifdef __APPLE__
+#if defined(__APPLE__) && !defined(CLOCK_MONOTONIC)
+#define LIBUBOX_COMPAT_CLOCK_GETTIME
#include <mach/clock_types.h>
#define CLOCK_REALTIME CALENDAR_CLOCK