X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Futils_format_json_test.c;h=d13c932f40de59f894c4c2715306b395c3c7e8bd;hb=4d370741101aeb037ae52f3529a4a0869e0dc08a;hp=1c8a8ceab17d4967a9cc091deb5bd6eda5329859;hpb=ec9ed6fe4108f7fd3d4ef84e887bb6d3dc022e14;p=collectd.git diff --git a/src/utils_format_json_test.c b/src/utils_format_json_test.c index 1c8a8cea..d13c932f 100644 --- a/src/utils_format_json_test.c +++ b/src/utils_format_json_test.c @@ -24,6 +24,18 @@ * Florian octo Forster */ +/* 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"