Code

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 c915791836ddd27000961f4028b968d2d6ea958e..0646c4c1a121902d49d8673bb32ea4c25c0b16fc 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"
 
 /*