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) and before any other header files
are included.
This should fix http://bugs.debian.org/422212.
Signed-off-by: Sebastian Harl <sh@tokkee.org>
AC_PREFIX_DEFAULT("/opt/collectd")
+AC_SYS_LARGEFILE
+
#
# Checks for programs.
#
* Niki W. Waibel <niki.waibel@gmx.net>
**/
+#if HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "common.h"
#include "utils_debug.h"
*
**/
-#include <termios.h>
-#include <sys/ioctl.h>
-#include <math.h>
#include "collectd.h"
#include "common.h"
#include "plugin.h"
+#include <termios.h>
+#include <sys/ioctl.h>
+#include <math.h>
+
#define MODULE_NAME "multimeter"
static char *multimeter_file = "multimeter.rrd";
* Florian octo Forster <octo at verplant.org>
**/
+#if HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
* Niki W. Waibel <niki.waibel at gmx.net>
**/
+#if HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "common.h"
#include "utils_debug.h"
* return;
**/
+#if HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "common.h"
#include "utils_debug.h"
#include "utils_ignorelist.h"
* Niki W. Waibel <niki.waibel@gmx.net>
**/
-
+#if HAVE_CONFIG_H
+# include <config.h>
+#endif
#include "common.h"
#if HAVE_XFS_XQM_H