components/jq/patches/xpg6.patch
author Vladimir Marek <Vladimir.Marek@oracle.com>
Thu, 06 Apr 2017 09:10:58 +0200
changeset 7841 d2c207b77abb
parent 7420 a5a56b02087b
permissions -rw-r--r--
25840776 Since removal of '.' from @INC some components don't compile
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
7420
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
     1
Patch origin: upstream
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
     2
Patch status: expected to be included in a future release
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
     3
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
     4
https://github.com/stedolan/jq/pull/1204
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
     5
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
     6
--- a/builtin.c
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
     7
+++ b/builtin.c
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
     8
@@ -1,6 +1,14 @@
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
     9
 #define _BSD_SOURCE
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
    10
 #define _GNU_SOURCE
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
    11
 #define _XOPEN_SOURCE
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
    12
+#define _XOPEN_SOURCE_EXTENDED 1
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
    13
+#ifndef __sun__
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
    14
+# define _XOPEN_SOURCE
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
    15
+# define _XOPEN_SOURCE_EXTENDED 1
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
    16
+#else
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
    17
+# define _XPG6
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
    18
+# define __EXTENSIONS__
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
    19
+#endif
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
    20
 #include <sys/time.h>
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
    21
 #include <stdlib.h>
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
    22
 #include <stddef.h>