summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 746a2c1)
raw | patch | inline | side by side (parent: 746a2c1)
author | Florian Forster <octo@collectd.org> | |
Thu, 11 Jun 2015 09:14:04 +0000 (10:14 +0100) | ||
committer | Florian Forster <octo@collectd.org> | |
Thu, 11 Jun 2015 09:14:04 +0000 (10:14 +0100) |
Fixes: #1077
src/zone.c | patch | blob | history |
diff --git a/src/zone.c b/src/zone.c
index cb3869d69829ff04e8f908711faecf435a26602e..188fbe3db3dc89108eb9ef45431d7aabb9108d58 100644 (file)
--- a/src/zone.c
+++ b/src/zone.c
* Dagobert Michelsen (forward-porting)
**/
-#define _BSD_SOURCE
+#if HAVE_CONFIG_H
+# include "config.h"
+# undef HAVE_CONFIG_H
+#endif
+/* avoid procfs.h error "Cannot use procfs in the large file compilation environment" */
+#if !defined(_LP64) && _FILE_OFFSET_BITS == 64
+# undef _FILE_OFFSET_BITS
+# undef _LARGEFILE64_SOURCE
+#endif
#include "collectd.h"
#include "common.h"