summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Langford <wlangfor@gmail.com>2018-11-12 08:17:30 -0500
committerWilliam Langford <wlangfor@gmail.com>2018-11-12 08:17:30 -0500
commitd5a0f3f7b2faaead9accd954ea6a14c524b86166 (patch)
tree592a1d99728549fed355205a53e320aa35d46a1c
parent1adbf3cfb3974e3972c95d03838b073b345d8743 (diff)
Incorporate lutzmader's patchesbugfix/aix-issues-jq1.6
-rw-r--r--src/builtin.c2
-rw-r--r--src/jv.h4
2 files changed, 6 insertions, 0 deletions
diff --git a/src/builtin.c b/src/builtin.c
index c6c8c2ea..1deacc24 100644
--- a/src/builtin.c
+++ b/src/builtin.c
@@ -3,6 +3,8 @@
#ifndef __sun__
# define _XOPEN_SOURCE
# define _XOPEN_SOURCE_EXTENDED 1
+#elif defined _AIX
+# define _XOPEN_SOURCE 700
#else
# define _XPG6
# define __EXTENSIONS__
diff --git a/src/jv.h b/src/jv.h
index c378a791..0fbdd88e 100644
--- a/src/jv.h
+++ b/src/jv.h
@@ -198,7 +198,11 @@ jv jv_object_iter_value(jv, int);
int jv_get_refcnt(jv);
+#ifdef _AIX
enum {
+#else
+enum jv_print_flags {
+#endif
JV_PRINT_PRETTY = 1,
JV_PRINT_ASCII = 2,
JV_PRINT_COLOR = 4, JV_PRINT_COLOUR = 4,