From: Florian Forster Date: Fri, 31 Oct 2008 14:44:53 +0000 (+0100) Subject: apcups plugin: Include "collectd.h" *before" . X-Git-Tag: collectd-4.4.5~17 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9b0038d949ad063eab51b21c11d46b7df409e1cb;p=collectd.git apcups plugin: Include "collectd.h" *before" . If not defined, sets/defines _FILE_OFFSET_BITS. Since (in 32bit mode) "collectd.h" defines that, too, you'll run into compilation problems. --- diff --git a/src/apcups.c b/src/apcups.c index c948f5a1..462006a6 100644 --- a/src/apcups.c +++ b/src/apcups.c @@ -24,13 +24,6 @@ * Anthony Gialluca **/ -/* - * FIXME: Don't know why but without this here atof() was not returning - * correct values for me. This is behavior that I don't understand and - * should be examined in closer detail. - */ -#include - #include "collectd.h" #include "common.h" /* rrd_update_file */ #include "plugin.h" /* plugin_register, plugin_submit */