src/collectd-nagios.c: Include "config.h" before <stdlib.h>.
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Wed, 3 Dec 2008 20:36:08 +0000 (21:36 +0100)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Wed, 3 Dec 2008 20:36:08 +0000 (21:36 +0100)
Otherwise _FILE_OFFSET_BITS may be redefined.

src/collectd-nagios.c

index c915791..0646c4c 100644 (file)
@@ -48,6 +48,8 @@
 # define __attribute__(x) /**/
 #endif
 
+#include "config.h"
+
 #include <stdlib.h>
 #include <unistd.h>
 #include <stdio.h>
@@ -59,7 +61,6 @@
 #include <sys/socket.h>
 #include <sys/un.h>
 
-#include "config.h"
 #include "libcollectdclient/client.h"
 
 /*