]> granicus.if.org Git - jq/commitdiff
Solaris needs XPG6 for c99
authorAttila Fülöp <attila@fueloep.org>
Wed, 10 Aug 2016 20:27:21 +0000 (22:27 +0200)
committerNico Williams <nico@cryptonector.com>
Sun, 29 Jan 2017 01:16:23 +0000 (19:16 -0600)
src/builtin.c

index 5f37ddfb3dff5874eebd1298ee5575164de64d00..0fbeed5128fedb6add9b1122e5fda0722fb05689 100644 (file)
@@ -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 <sys/time.h>
 #include <stdlib.h>
 #include <stddef.h>