write_sensu: define _GNU_SOURCE for asprintf
authorRuben Kerkhof <ruben@tilaa.com>
Tue, 1 Mar 2016 15:54:06 +0000 (16:54 +0100)
committerRuben 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

index be65399..0d568fe 100644 (file)
@@ -24,6 +24,8 @@
  *   Fabrice A. Marie <fabrice at kibinlabs.com>
  */
 
+#define _GNU_SOURCE
+
 #include "collectd.h"
 #include "plugin.h"
 #include "common.h"