Code

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 aa275fd208515c82ce42ab20a4ef1e16fc2df3f4..1c8a8ceab17d4967a9cc091deb5bd6eda5329859 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 */