From: Vincent Brillault Date: Fri, 22 Aug 2014 16:56:24 +0000 (+0200) Subject: Turbostat: Explain why _GNU_SOURCE is required X-Git-Tag: collectd-5.5.0~24^2~74 X-Git-Url: https://git.octo.it/?p=collectd.git;a=commitdiff_plain;h=fa4ee54284bba1b55e40101334b8770d96649fb9 Turbostat: Explain why _GNU_SOURCE is required --- 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