X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Futils_format_json_test.c;h=1400694bc0f557be695543abe908da7b8ce725af;hb=44abd37ccfb63f8eb57112ddf3e37ece3aae3e65;hp=aa275fd208515c82ce42ab20a4ef1e16fc2df3f4;hpb=c7d859191d8fbfc129dea8cfaf9e13e78fd6642c;p=collectd.git diff --git a/src/utils_format_json_test.c b/src/utils_format_json_test.c index aa275fd2..1400694b 100644 --- a/src/utils_format_json_test.c +++ b/src/utils_format_json_test.c @@ -24,8 +24,19 @@ * Florian octo Forster */ -#include "testing.h" +/* Workaround for Solaris 10 defining label_t + * Issue #1301 + */ +#if KERNEL_SOLARIS +# ifndef _POSIX_C_SOURCE +# define _POSIX_C_SOURCE 200112L +# endif +# undef __EXTENSIONS__ +#endif + #include "collectd.h" + +#include "testing.h" #include "utils_format_json.h" #include "common.h" /* for STATIC_ARRAY_SIZE */