Really fix tests on Solaris
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Mon, 22 Aug 2016 19:43:15 +0000 (21:43 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Mon, 22 Aug 2016 19:43:15 +0000 (21:43 +0200)
3b264ee checked for KERNEL_SOLARIS, but this is only defined if config.h is included.

src/utils_format_json_test.c

index 1400694..d13c932 100644 (file)
@@ -27,6 +27,8 @@
 /* Workaround for Solaris 10 defining label_t
  * Issue #1301
  */
+
+#include "config.h"
 #if KERNEL_SOLARIS
 # ifndef _POSIX_C_SOURCE
 #  define _POSIX_C_SOURCE 200112L