From: Attila Fülöp Date: Wed, 10 Aug 2016 20:27:21 +0000 (+0200) Subject: Solaris needs XPG6 for c99 X-Git-Tag: jq-1.6rc1~91 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e82147bbb859413744ec9591065bf87d2b281ce4;p=jq Solaris needs XPG6 for c99 --- diff --git a/src/builtin.c b/src/builtin.c index 5f37ddf..0fbeed5 100644 --- a/src/builtin.c +++ b/src/builtin.c @@ -1,7 +1,12 @@ #define _BSD_SOURCE #define _GNU_SOURCE -#define _XOPEN_SOURCE -#define _XOPEN_SOURCE_EXTENDED 1 +#ifndef __sun__ +# define _XOPEN_SOURCE +# define _XOPEN_SOURCE_EXTENDED 1 +#else +# define _XPG6 +# define __EXTENSIONS__ +#endif #include #include #include