From 66564c2324abc58b24327b763e1113ff781156a2 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 21 Feb 2019 20:34:01 +0100 Subject: Adding upstream version 1.12.1. Signed-off-by: Daniel Baumann --- libnetdata/clocks/clocks.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libnetdata/clocks/clocks.h') diff --git a/libnetdata/clocks/clocks.h b/libnetdata/clocks/clocks.h index d576d86b9..47aa148c1 100644 --- a/libnetdata/clocks/clocks.h +++ b/libnetdata/clocks/clocks.h @@ -130,4 +130,10 @@ extern usec_t heartbeat_monotonic_dt_to_now_usec(heartbeat_t *hb); extern int sleep_usec(usec_t usec); +/* + * When running a binary with CLOCK_BOOTTIME defined on a system with a linux kernel older than Linux 2.6.39 the + * clock_gettime(2) system call fails with EINVAL. In that case it must fall-back to CLOCK_MONOTONIC. + */ +void test_clock_boottime(void); + #endif /* NETDATA_CLOCKS_H */ -- cgit v1.2.3