@cryptotaxi247 / netdata-1 / commits / d8cbff7b9

Fix typos when clock_id or struct timespec are not defined on the system

Signed-off-by: Rémi Lefèvre <remi.lefevre@parrot.com>

Rémi Lefèvre committed Dec 12, 2016 at 09:46 UTC d8cbff7b9374e6f02812ba48c5f6c8be8654bf77
1 file changed +3 -3
src/clocks.h
+3 -3
@@ -5,18 +5,18 @@
5 struct timespec {
6 time_t tv_sec; /* seconds */
7 long tv_nsec; /* nanoseconds */
8 -}
8 +};
9 #endif
10
11 #ifndef HAVE_CLOCKID_T
12 -typedef int clockid_t
12 +typedef int clockid_t;
13 #endif
14
15 #ifndef HAVE_CLOCK_GETTIME
16 int clock_gettime(clockid_t clk_id, struct timespec *ts);
17 #endif
18
19 -/* Linux values are as good as any others */
19 +/* Linux value is as good as any other */
20 #ifndef CLOCK_REALTIME
21 #define CLOCK_REALTIME 0
22 #endif