projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d9678b
)
Explain the need for _GNU_SOURCE
author
Manuel Luis SanmartĂn Rozada
<manuel.luis@gmail.com>
Sun, 9 Feb 2014 15:03:03 +0000
(16:03 +0100)
committer
Marc Fournier
<marc.fournier@camptocamp.com>
Wed, 16 Nov 2016 06:40:50 +0000
(07:40 +0100)
src/daemon/plugin.c
patch
|
blob
|
history
diff --git
a/src/daemon/plugin.c
b/src/daemon/plugin.c
index
987f40a
..
08c5199
100644
(file)
--- a/
src/daemon/plugin.c
+++ b/
src/daemon/plugin.c
@@
-25,7
+25,9
@@
* Sebastian Harl <sh at tokkee.org>
**/
-#define _GNU_SOURCE
+/* _GNU_SOURCE is needed in Linux to use pthread_setname_np */
+#define _GNU_SOURCE
+
#include "collectd.h"
#include "common.h"