Code

bind plugin: Be more specific about the features we need.
[collectd.git] / src / bind.c
index 8da0e6a7f0908fbcfffedd01e5f3043c8879b5a2..43b61dd25c6233c8e9914300d8e5e05005c3b79d 100644 (file)
  *   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"
@@ -51,11 +68,11 @@ static const char *config_keys[] =
 {
   "URL",
   "RRQueriesIn",
-  "Requests"
+  "Requests",
   "QueryResults",
   "Updates",
   "ZoneMaintenance",
-  "Resolver",
+  "Resolver"
 };
 static int config_keys_num = STATIC_ARRAY_SIZE (config_keys);