apcups plugin: Include "collectd.h" *before" <stdlib.h>.
authorFlorian Forster <octo@huhu.verplant.org>
Fri, 31 Oct 2008 14:44:53 +0000 (15:44 +0100)
committerFlorian Forster <octo@huhu.verplant.org>
Fri, 31 Oct 2008 14:44:53 +0000 (15:44 +0100)
commit9b0038d949ad063eab51b21c11d46b7df409e1cb
treee09b47335e159985417c9ce2ed2717b1881a07ba
parent4639bd0e1865a24158a3f7b46ea9b6d95cbf3f4e
apcups plugin: Include "collectd.h" *before" <stdlib.h>.

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.
src/apcups.c