summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b38c8bb)
raw | patch | inline | side by side (parent: b38c8bb)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sat, 17 Jan 2009 11:01:04 +0000 (12:01 +0100) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sat, 17 Jan 2009 11:01:04 +0000 (12:01 +0100) |
src/bind.c | patch | blob | history |
diff --git a/src/bind.c b/src/bind.c
index 67854e3db5cb4f032c68c590c207f05b7376686c..43b61dd25c6233c8e9914300d8e5e05005c3b79d 100644 (file)
--- a/src/bind.c
+++ b/src/bind.c
* Bruno Prémont <bonbons at linux-vserver.org>
**/
-#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"