Skip to contentSkip to conversation

compat.h: define CLOCK_MONOTONIC_RAW

PATCH New Jiri Slaby 1 participant 1 message Jun 30, 2015

lore
Share & tools
lore

Jiri Slaby

author
#0 lore raw

PATCH 1/1 compat.h: define CLOCK_MONOTONIC_RAW

It is not defined on older distros yet.

---
 include/compat.h | 3 +++
 1 file changed, 3 insertions(+)
include/compat.h +3 -0
index ce465632c250..589beac75510 100644
@@ -1018,6 +1018,9 @@ struct kvm_get_htab_fd {
 #endif
 
 /* time.h */
+#ifndef CLOCK_MONOTONIC_RAW
+#define CLOCK_MONOTONIC_RAW 4
+#endif
 #ifndef CLOCK_BOOTTIME
 #define CLOCK_BOOTTIME 7
 #endif
Signature · 1 line
2.4.3