summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/monotonic.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/monotonic.h b/include/monotonic.h
index a499fa34a..296173ece 100644
--- a/include/monotonic.h
+++ b/include/monotonic.h
@@ -1,6 +1,12 @@
#ifndef UTIL_LINUX_MONOTONIC_H
#define UTIL_LINUX_MONOTONIC_H
+# ifdef CLOCK_MONOTONIC_RAW
+# define UL_CLOCK_MONOTONIC CLOCK_MONOTONIC_RAW
+# else
+# define UL_CLOCK_MONOTONIC CLOCK_MONOTONIC
+# endif
+
#include <sys/time.h>
extern int get_boot_time(struct timeval *boot_time);