From: Ruben Kerkhof Date: Tue, 1 Mar 2016 15:54:06 +0000 (+0100) Subject: write_sensu: define _GNU_SOURCE for asprintf X-Git-Tag: collectd-5.5.2~43 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=36d1b24cf62bdb23b000bb827b6597e8a159ab32;p=collectd.git write_sensu: define _GNU_SOURCE for asprintf On Linux, asprintf and vasprintf are only available when _GNU_SOURCE is defined. --- diff --git a/src/write_sensu.c b/src/write_sensu.c index be653995..0d568fe6 100644 --- a/src/write_sensu.c +++ b/src/write_sensu.c @@ -24,6 +24,8 @@ * Fabrice A. Marie */ +#define _GNU_SOURCE + #include "collectd.h" #include "plugin.h" #include "common.h"