trinity.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] compat.h: define CLOCK_MONOTONIC_RAW
@ 2015-06-30 10:01 Jiri Slaby
  0 siblings, 0 replies; only message in thread
From: Jiri Slaby @ 2015-06-30 10:01 UTC (permalink / raw
  To: davej; +Cc: trinity, Jiri Slaby

It is not defined on older distros yet.

Signed-off-by: Jiri Slaby <jslaby@suse.com>
---
 include/compat.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/include/compat.h b/include/compat.h
index ce465632c250..589beac75510 100644
--- a/include/compat.h
+++ b/include/compat.h
@@ -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
-- 
2.4.3

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2015-06-30 10:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-30 10:01 [PATCH] compat.h: define CLOCK_MONOTONIC_RAW Jiri Slaby

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).