From: Ruben Kerkhof Date: Mon, 22 Aug 2016 19:43:15 +0000 (+0200) Subject: Really fix tests on Solaris X-Git-Tag: collectd-5.6.0~6 X-Git-Url: https://git.octo.it/?a=commitdiff_plain;h=7a43e0b7b46589add8b7a3e7a870dc6485e04cdf;p=collectd.git Really fix tests on Solaris 3b264ee checked for KERNEL_SOLARIS, but this is only defined if config.h is included. --- diff --git a/src/utils_format_json_test.c b/src/utils_format_json_test.c index 1400694b..d13c932f 100644 --- a/src/utils_format_json_test.c +++ b/src/utils_format_json_test.c @@ -27,6 +27,8 @@ /* Workaround for Solaris 10 defining label_t * Issue #1301 */ + +#include "config.h" #if KERNEL_SOLARIS # ifndef _POSIX_C_SOURCE # define _POSIX_C_SOURCE 200112L