From: Ruben Kerkhof Date: Mon, 8 Aug 2016 11:12:08 +0000 (+0200) Subject: Include collectd.h before testing.h X-Git-Tag: collectd-5.6.0~77 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0ebdad12ec580881cf998fc32dddb04d346a7310;p=collectd.git 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) --- 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 */