[collectd] [PATCH] Added large file support.
Sebastian Harl
sh at tokkee.org
Sat May 12 18:54:44 CEST 2007
This adds large file support to collectd by using the AC_SYS_LARGEFILE macro
in configure.in. In order to apply any necessary options to all parts of
collectd, we have to make sure config.h is included in all source files
(either directly or by including collectd.h).
This should fix http://bugs.debian.org/422212.
Signed-off-by: Sebastian Harl <sh at tokkee.org>
---
configure.in | 2 ++
src/collectd-nagios.c | 2 ++
src/common.c | 2 ++
src/utils_avltree.c | 3 +++
src/utils_ignorelist.c | 2 ++
src/utils_llist.c | 2 ++
src/utils_mount.c | 2 +-
7 files changed, 14 insertions(+), 1 deletions(-)
diff --git a/configure.in b/configure.in
index d2c4aa2..4e34555 100644
--- a/configure.in
+++ b/configure.in
@@ -7,6 +7,8 @@ AC_LANG(C)
AC_PREFIX_DEFAULT("/opt/collectd")
+AC_SYS_LARGEFILE
+
#
# Checks for programs.
#
diff --git a/src/collectd-nagios.c b/src/collectd-nagios.c
index b7c3ffa..473ddbb 100644
--- a/src/collectd-nagios.c
+++ b/src/collectd-nagios.c
@@ -1,3 +1,5 @@
+#include <config.h>
+
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
diff --git a/src/common.c b/src/common.c
index 6521a58..afa8feb 100644
--- a/src/common.c
+++ b/src/common.c
@@ -20,6 +20,8 @@
* Niki W. Waibel <niki.waibel at gmx.net>
**/
+#include <config.h>
+
#include "common.h"
#include "plugin.h"
diff --git a/src/utils_avltree.c b/src/utils_avltree.c
index 786bc38..e84a0b6 100644
--- a/src/utils_avltree.c
+++ b/src/utils_avltree.c
@@ -19,6 +19,9 @@
* Authors:
* Florian octo Forster <octo at verplant.org>
**/
+
+#include <config.h>
+
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
diff --git a/src/utils_ignorelist.c b/src/utils_ignorelist.c
index f71ac1d..b75bd0f 100644
--- a/src/utils_ignorelist.c
+++ b/src/utils_ignorelist.c
@@ -47,6 +47,8 @@
* return;
**/
+#include <config.h>
+
#include "common.h"
#include "plugin.h"
#include "utils_ignorelist.h"
diff --git a/src/utils_llist.c b/src/utils_llist.c
index a815035..9b6d6af 100644
--- a/src/utils_llist.c
+++ b/src/utils_llist.c
@@ -21,6 +21,8 @@
* Florian Forster <octo at verplant.org>
*/
+#include <config.h>
+
#include <stdlib.h>
#include <string.h>
diff --git a/src/utils_mount.c b/src/utils_mount.c
index eee2eb6..0bda90a 100644
--- a/src/utils_mount.c
+++ b/src/utils_mount.c
@@ -21,7 +21,7 @@
* Niki W. Waibel <niki.waibel at gmx.net>
**/
-
+#include <config.h>
#include "common.h"
#if HAVE_XFS_XQM_H
--
1.4.4.3
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20070512/3dc1f101/attachment.pgp
More information about the collectd
mailing list