Include collectd.h before testing.h
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Mon, 8 Aug 2016 11:12:08 +0000 (13:12 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Mon, 8 Aug 2016 11:12:08 +0000 (13:12 +0200)
testing.h includes system headers that set #define _FILE_OFFSET_BITS 32,
if not already defined. We define them in config.h, which is included by collectd.h

Fixes tests on 32-bit Solaris (#1301)

src/utils_format_json_test.c

index aa275fd..1c8a8ce 100644 (file)
@@ -24,8 +24,9 @@
  *   Florian octo Forster <octo at collectd.org>
  */
 
-#include "testing.h"
 #include "collectd.h"
+
+#include "testing.h"
 #include "utils_format_json.h"
 #include "common.h" /* for STATIC_ARRAY_SIZE */