aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/compat/sys/time.h4
-rw-r--r--include/compat/time.h13
2 files changed, 13 insertions, 4 deletions
diff --git a/include/compat/sys/time.h b/include/compat/sys/time.h
index 3d31985..76428c1 100644
--- a/include/compat/sys/time.h
+++ b/include/compat/sys/time.h
@@ -13,10 +13,6 @@ int gettimeofday(struct timeval *tp, void *tzp);
13#include_next <sys/time.h> 13#include_next <sys/time.h>
14#endif 14#endif
15 15
16#ifndef CLOCK_MONOTONIC
17#define CLOCK_MONOTONIC CLOCK_REALTIME
18#endif
19
20#ifndef timersub 16#ifndef timersub
21#define timersub(tvp, uvp, vvp) \ 17#define timersub(tvp, uvp, vvp) \
22 do { \ 18 do { \
diff --git a/include/compat/time.h b/include/compat/time.h
index df65530..d43dfcb 100644
--- a/include/compat/time.h
+++ b/include/compat/time.h
@@ -22,6 +22,19 @@ struct tm *__gmtime_r(const time_t * t, struct tm * tm);
22time_t timegm(struct tm *tm); 22time_t timegm(struct tm *tm);
23#endif 23#endif
24 24
25#ifndef CLOCK_MONOTONIC
26#define CLOCK_MONOTONIC CLOCK_REALTIME
27#endif
28
29#ifndef CLOCK_REALTIME
30#define CLOCK_REALTIME 0
31#endif
32
33#ifndef HAVE_CLOCK_GETTIME
34int
35clock_gettime(clockid_t clock_id, struct timespec *tp);
36#endif
37
25#ifndef timespecsub 38#ifndef timespecsub
26#define timespecsub(tsp, usp, vsp) \ 39#define timespecsub(tsp, usp, vsp) \
27 do { \ 40 do { \