summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4639bd0)
raw | patch | inline | side by side (parent: 4639bd0)
author | Florian Forster <octo@huhu.verplant.org> | |
Fri, 31 Oct 2008 14:44:53 +0000 (15:44 +0100) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Fri, 31 Oct 2008 14:44:53 +0000 (15:44 +0100) |
If not defined, <stdlib.h> sets/defines _FILE_OFFSET_BITS. Since (in 32bit
mode) "collectd.h" defines that, too, you'll run into compilation problems.
mode) "collectd.h" defines that, too, you'll run into compilation problems.
src/apcups.c | patch | blob | history |
diff --git a/src/apcups.c b/src/apcups.c
index c948f5a165b8b5f14d298601de99c90a4cc045e2..462006a66a2a9447738ad60c060c2a3451c6e60f 100644 (file)
--- a/src/apcups.c
+++ b/src/apcups.c
* Anthony Gialluca <tonyabg at charter.net>
**/
-/*
- * 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 <stdlib.h>
-
#include "collectd.h"
#include "common.h" /* rrd_update_file */
#include "plugin.h" /* plugin_register, plugin_submit */