projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e1fbb9
)
Turbostat: Explain why _GNU_SOURCE is required
author
Vincent Brillault
<git@lerya.net>
Fri, 22 Aug 2014 16:56:24 +0000
(18:56 +0200)
committer
Vincent Brillault
<git@lerya.net>
Sat, 28 Feb 2015 06:35:40 +0000
(07:35 +0100)
src/turbostat.c
patch
|
blob
|
history
diff --git
a/src/turbostat.c
b/src/turbostat.c
index
19f0786
..
9337e90
100644
(file)
--- a/
src/turbostat.c
+++ b/
src/turbostat.c
@@
-24,7
+24,17
@@
* 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>