projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6b065e
)
write_sensu: define _GNU_SOURCE for asprintf
author
Ruben Kerkhof
<ruben@tilaa.com>
Tue, 1 Mar 2016 15:54:06 +0000
(16:54 +0100)
committer
Ruben Kerkhof
<ruben@tilaa.com>
Tue, 1 Mar 2016 15:54:06 +0000
(16:54 +0100)
On Linux, asprintf and vasprintf are only available when _GNU_SOURCE is defined.
src/write_sensu.c
patch
|
blob
|
history
diff --git
a/src/write_sensu.c
b/src/write_sensu.c
index
be65399
..
0d568fe
100644
(file)
--- a/
src/write_sensu.c
+++ b/
src/write_sensu.c
@@
-24,6
+24,8
@@
* Fabrice A. Marie <fabrice at kibinlabs.com>
*/
+#define _GNU_SOURCE
+
#include "collectd.h"
#include "plugin.h"
#include "common.h"