index aa275fd208515c82ce42ab20a4ef1e16fc2df3f4..1400694bc0f557be695543abe908da7b8ce725af 100644 (file)
* Florian octo Forster <octo at collectd.org>
*/
-#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 */