projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a65aad
)
Work around Solaris 10 defining label_t
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Tue, 9 Aug 2016 10:57:21 +0000
(12:57 +0200)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Tue, 9 Aug 2016 10:59:52 +0000
(12:59 +0200)
Solaris 10 defines label_t in /usr/include/sys/machtypes.h,
unless POSIX_C_SOURCE is defined, or when __EXTENSIONS__ is defined.
Fixes #1301
src/utils_format_json_test.c
patch
|
blob
|
history
diff --git
a/src/utils_format_json_test.c
b/src/utils_format_json_test.c
index
1c8a8ce
..
1400694
100644
(file)
--- a/
src/utils_format_json_test.c
+++ b/
src/utils_format_json_test.c
@@
-24,6
+24,16
@@
* Florian octo Forster <octo at collectd.org>
*/
+/* 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"