diff options
author | William Langford <wlangfor@gmail.com> | 2018-11-12 08:17:30 -0500 |
---|---|---|
committer | William Langford <wlangfor@gmail.com> | 2018-11-12 08:17:30 -0500 |
commit | d5a0f3f7b2faaead9accd954ea6a14c524b86166 (patch) | |
tree | 592a1d99728549fed355205a53e320aa35d46a1c | |
parent | 1adbf3cfb3974e3972c95d03838b073b345d8743 (diff) |
Incorporate lutzmader's patchesbugfix/aix-issues-jq1.6
-rw-r--r-- | src/builtin.c | 2 | ||||
-rw-r--r-- | src/jv.h | 4 |
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__ @@ -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, |