summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f6b065e)
raw | patch | inline | side by side (parent: f6b065e)
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 be6539954c2df6438a6f1932df19aa7e903eb78c..0d568fe6118d8b9808710e22f10db2ff7d548d59 100644 (file)
--- a/src/write_sensu.c
+++ b/src/write_sensu.c
* Fabrice A. Marie <fabrice at kibinlabs.com>
*/
+#define _GNU_SOURCE
+
#include "collectd.h"
#include "plugin.h"
#include "common.h"