From: Manuel Luis SanmartĂ­n Rozada Date: Sun, 9 Feb 2014 15:03:03 +0000 (+0100) Subject: Explain the need for _GNU_SOURCE X-Git-Tag: collectd-5.7.0~32^2~3 X-Git-Url: https://git.octo.it/?p=collectd.git;a=commitdiff_plain;h=a4b9c9ad2d77656892026ad4b51f9fb7c2a58149 Explain the need for _GNU_SOURCE --- diff --git a/src/daemon/plugin.c b/src/daemon/plugin.c index 987f40aa..08c51995 100644 --- a/src/daemon/plugin.c +++ b/src/daemon/plugin.c @@ -25,7 +25,9 @@ * Sebastian Harl **/ -#define _GNU_SOURCE +/* _GNU_SOURCE is needed in Linux to use pthread_setname_np */ +#define _GNU_SOURCE + #include "collectd.h" #include "common.h"