From 7cd0a15527855e81c150e6eb564d35408e9a7580 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20T=C3=B6rnblom?= Date: Thu, 6 Sep 2012 14:49:28 +0200 Subject: [PATCH] fix compilation error on older systems where CLOCK_MONOTONIC_COARSE is not defined. --- src/tvheadend.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tvheadend.h b/src/tvheadend.h index b66ba756..1d8cc9f6 100644 --- a/src/tvheadend.h +++ b/src/tvheadend.h @@ -385,6 +385,10 @@ extern int log_debug; } while(0) +#ifndef CLOCK_MONOTONIC_COARSE +#define CLOCK_MONOTONIC_COARSE CLOCK_MONOTONIC +#endif + static inline int64_t getmonoclock(void) {