Code

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 1400694bc0f557be695543abe908da7b8ce725af..d13c932f40de59f894c4c2715306b395c3c7e8bd 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