]> arthur.barton.de Git - netdata.git/blobdiff - src/clocks.h
uptime plugin; fixes #1546; fixes #1507
[netdata.git] / src / clocks.h
index 9634ac67e5007e16efe3ddc8dead592089373054..c1b8e70179ec93acda3025e0afa0e3163e03d290 100644 (file)
@@ -29,6 +29,10 @@ int clock_gettime(clockid_t clk_id, struct timespec *ts);
 #ifndef CLOCK_BOOTTIME
 /* fallback to CLOCK_MONOTONIC if not available */
 #define CLOCK_BOOTTIME  CLOCK_MONOTONIC
+#else
+#ifdef HAVE_CLOCK_GETTIME
+#define CLOCK_BOOTTIME_IS_AVAILABLE 1 // required for /proc/uptime
+#endif
 #endif
 
 typedef unsigned long long usec_t;