[PATCH] compat.h: define CLOCK_MONOTONIC_RAW
Jiri Slaby <[email protected]> Tue, 30 Jun 2015 12:01:01 +0200
| Newsgroups | org.kernel.vger.trinity |
|---|---|
| Message-ID | <[email protected]> |
It is not defined on older distros yet. Signed-off-by: Jiri Slaby <[email protected]> --- 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