X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Futils_format_json_test.c;h=1400694bc0f557be695543abe908da7b8ce725af;hb=6fc6255c95b966014ee02a2a37666b2c4880ff8d;hp=1c8a8ceab17d4967a9cc091deb5bd6eda5329859;hpb=1bdfcf9791729310f75857d0e002c40ef659a89b;p=collectd.git diff --git a/src/utils_format_json_test.c b/src/utils_format_json_test.c index 1c8a8cea..1400694b 100644 --- a/src/utils_format_json_test.c +++ b/src/utils_format_json_test.c @@ -24,6 +24,16 @@ * Florian octo Forster */ +/* 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"