From: Florian Forster Date: Sat, 17 Jan 2009 11:01:04 +0000 (+0100) Subject: bind plugin: Be more specific about the features we need. X-Git-Tag: collectd-4.6.0~98^2~5 X-Git-Url: https://git.octo.it/?a=commitdiff_plain;ds=sidebyside;h=c99971391922c90a3ec8660ad0036b10bbaa0a0a;p=collectd.git bind plugin: Be more specific about the features we need. --- diff --git a/src/bind.c b/src/bind.c index 67854e3d..43b61dd2 100644 --- a/src/bind.c +++ b/src/bind.c @@ -19,9 +19,26 @@ * Bruno Prémont **/ -#define _ISOC99_SOURCE -#define _XOPEN_SOURCE -#define _BSD_SOURCE +/* Set to C99 and POSIX code */ +#ifndef _ISOC99_SOURCE +# define _ISOC99_SOURCE +#endif +#ifndef _POSIX_SOURCE +# define _POSIX_SOURCE +#endif +#ifndef _POSIX_C_SOURCE +# define _POSIX_C_SOURCE 200112L +#endif +#ifndef _REENTRANT +# define _REENTRANT +#endif +#ifndef _XOPEN_SOURCE +# define _XOPEN_SOURCE 600 +#endif +#ifndef _BSD_SOURCE +# define _BSD_SOURCE +#endif + #include "collectd.h" #include "common.h" #include "plugin.h"