Code

Turbostat: Explain why _GNU_SOURCE is required
authorVincent Brillault <git@lerya.net>
Fri, 22 Aug 2014 16:56:24 +0000 (18:56 +0200)
committerVincent Brillault <git@lerya.net>
Sat, 28 Feb 2015 06:35:40 +0000 (07:35 +0100)
src/turbostat.c

index 19f0786b0b65631d93efa6a8aca791e9307bdb6d..9337e90f695b100abc3c5d7b8b00f20c00a1a762 100644 (file)
  * Ported to collectd by Vincent Brillault <git@lerya.net>
  */
 
+/*
+ * _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 <asm/msr-index.h>
 #include <stdarg.h>
 #include <stdio.h>