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 19f0786..9337e90 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>