From 0ebdad12ec580881cf998fc32dddb04d346a7310 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Mon, 8 Aug 2016 13:12:08 +0200 Subject: [PATCH] Include collectd.h before testing.h 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils_format_json_test.c b/src/utils_format_json_test.c index aa275fd2..1c8a8cea 100644 --- a/src/utils_format_json_test.c +++ b/src/utils_format_json_test.c @@ -24,8 +24,9 @@ * Florian octo Forster */ -#include "testing.h" #include "collectd.h" + +#include "testing.h" #include "utils_format_json.h" #include "common.h" /* for STATIC_ARRAY_SIZE */ -- 2.11.0