From fa4ee54284bba1b55e40101334b8770d96649fb9 Mon Sep 17 00:00:00 2001 From: Vincent Brillault Date: Fri, 22 Aug 2014 18:56:24 +0200 Subject: [PATCH] Turbostat: Explain why _GNU_SOURCE is required --- src/turbostat.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/turbostat.c b/src/turbostat.c index 19f0786b..9337e90f 100644 --- a/src/turbostat.c +++ b/src/turbostat.c @@ -24,7 +24,17 @@ * Ported to collectd by Vincent Brillault */ +/* + * _GNU_SOURCE is required because of the following functions: + * - CPU_ISSET_S + * - CPU_ZERO_S + * - CPU_SET_S + * - CPU_FREE + * - CPU_ALLOC + * - CPU_ALLOC_SIZE + */ #define _GNU_SOURCE + #include #include #include -- 2.11.0