X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Futils_format_json_test.c;h=d13c932f40de59f894c4c2715306b395c3c7e8bd;hb=1aa4295ba6875ceb02a7383237bc2485ffab9c1e;hp=aa275fd208515c82ce42ab20a4ef1e16fc2df3f4;hpb=7adc8768ee5f7276d1964da6d268effba557d3a5;p=collectd.git diff --git a/src/utils_format_json_test.c b/src/utils_format_json_test.c index aa275fd2..d13c932f 100644 --- a/src/utils_format_json_test.c +++ b/src/utils_format_json_test.c @@ -24,8 +24,21 @@ * Florian octo Forster */ -#include "testing.h" +/* Workaround for Solaris 10 defining label_t + * Issue #1301 + */ + +#include "config.h" +#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 */