pango: update to 1.56.1
[oi-userland.git] / components / print / ghostscript / patches / 04-XPG7.patch
bloba2beba5cd10604c4289ddb795f7ccb436fcf0d86
1 In house patch to use XPG7 standard
2 NOTE : This patch will not be pushed upstream, as community is using
3 XPG5 standards.
5 --- ghostscript-9.22/contrib/pcl3/src/pclgen.c.orig 2017-11-15 22:39:33.665870850 +0000
6 +++ ghostscript-9.22/contrib/pcl3/src/pclgen.c 2017-11-15 22:40:06.218958657 +0000
7 @@ -52,7 +52,7 @@
8 /*****************************************************************************/
10 #ifndef _XOPEN_SOURCE
11 -#define _XOPEN_SOURCE 500
12 +#define _XOPEN_SOURCE 700
13 #endif
15 /* Standard headers */
17 --- ghostscript-9.22/contrib/pcl3/src/pclscan.c.orig 2017-11-15 22:39:33.678926042 +0000
18 +++ ghostscript-9.22/contrib/pcl3/src/pclscan.c 2017-11-15 22:40:18.977403291 +0000
19 @@ -14,7 +14,7 @@
20 /*****************************************************************************/
22 #ifndef _XOPEN_SOURCE
23 -#define _XOPEN_SOURCE 500
24 +#define _XOPEN_SOURCE 700
25 #endif
26 #ifndef _XOPEN_SOURCE_EXTENDED
27 #define _XOPEN_SOURCE_EXTENDED 1
29 --- ghostscript-9.22/contrib/pcl3/src/pclcap.c.orig 2017-11-15 22:39:33.690765286 +0000
30 +++ ghostscript-9.22/contrib/pcl3/src/pclcap.c 2017-11-15 22:40:24.433529220 +0000
31 @@ -14,7 +14,7 @@
32 /*****************************************************************************/
34 #ifndef _XOPEN_SOURCE
35 -#define _XOPEN_SOURCE 500
36 +#define _XOPEN_SOURCE 700
37 #endif
39 /* Standard headers */
41 --- ghostscript-9.22/contrib/pcl3/src/pcl3opts.c.orig 2017-11-15 22:39:33.699537920 +0000
42 +++ ghostscript-9.22/contrib/pcl3/src/pcl3opts.c 2017-11-15 22:40:31.214560193 +0000
43 @@ -16,7 +16,7 @@
44 /*****************************************************************************/
46 #ifndef _XOPEN_SOURCE
47 -#define _XOPEN_SOURCE 500
48 +#define _XOPEN_SOURCE 700
49 #endif
51 /* Standard headers */
53 --- ghostscript-9.22/contrib/pcl3/src/gdevpcl3.c.orig 2017-11-15 22:39:33.708117318 +0000
54 +++ ghostscript-9.22/contrib/pcl3/src/gdevpcl3.c 2017-11-15 22:40:38.495432108 +0000
55 @@ -26,7 +26,7 @@
56 /*****************************************************************************/
58 #ifndef _XOPEN_SOURCE
59 -#define _XOPEN_SOURCE 500
60 +#define _XOPEN_SOURCE 700
61 #endif
63 /* Special Aladdin header, must be included before <sys/types.h> on some
65 --- ghostscript-9.22/contrib/pcl3/src/pclsize.c.orig 2017-11-15 22:39:33.716785373 +0000
66 +++ ghostscript-9.22/contrib/pcl3/src/pclsize.c 2017-11-15 22:40:43.278651991 +0000
67 @@ -14,7 +14,7 @@
68 /*****************************************************************************/
70 #ifndef _XOPEN_SOURCE
71 -#define _XOPEN_SOURCE 500
72 +#define _XOPEN_SOURCE 700
73 #endif
75 /* Standard headers */
77 --- ghostscript-9.22/contrib/pcl3/src/pclcomp.c.orig 2017-11-15 22:39:33.722733512 +0000
78 +++ ghostscript-9.22/contrib/pcl3/src/pclcomp.c 2017-11-15 22:40:48.150119434 +0000
79 @@ -19,7 +19,7 @@
80 /*****************************************************************************/
82 #ifndef _XOPEN_SOURCE
83 -#define _XOPEN_SOURCE 500
84 +#define _XOPEN_SOURCE 700
85 #endif
87 /* Interface definition */
89 --- ghostscript-9.22/contrib/pcl3/eprn/eprnrend.c.orig 2017-11-15 22:39:33.731522701 +0000
90 +++ ghostscript-9.22/contrib/pcl3/eprn/eprnrend.c 2017-11-15 22:40:55.363194720 +0000
91 @@ -47,7 +47,7 @@
92 /*****************************************************************************/
94 #ifndef _XOPEN_SOURCE
95 -#define _XOPEN_SOURCE 500
96 +#define _XOPEN_SOURCE 700
97 #endif
99 /* Special Aladdin header, must be included before <sys/types.h> on some
101 --- ghostscript-9.22/contrib/pcl3/eprn/mediasize.c.orig 2017-11-15 22:39:33.737465046 +0000
102 +++ ghostscript-9.22/contrib/pcl3/eprn/mediasize.c 2017-11-15 22:40:59.934371021 +0000
103 @@ -14,7 +14,7 @@
104 /*****************************************************************************/
106 #ifndef _XOPEN_SOURCE
107 -#define _XOPEN_SOURCE 500
108 +#define _XOPEN_SOURCE 700
109 #endif
111 #include "std.h"
113 --- ghostscript-9.22/contrib/pcl3/eprn/eprnparm.c.orig 2017-11-15 22:39:33.745832998 +0000
114 +++ ghostscript-9.22/contrib/pcl3/eprn/eprnparm.c 2017-11-15 22:41:04.593953330 +0000
115 @@ -35,7 +35,7 @@
116 /*****************************************************************************/
118 #ifndef _XOPEN_SOURCE
119 -#define _XOPEN_SOURCE 500
120 +#define _XOPEN_SOURCE 700
121 #endif
123 /* Special Aladdin header, must be included before <sys/types.h> on some
125 --- ghostscript-9.22/contrib/pcl3/eprn/gdeveprn.c.orig 2017-11-15 22:39:33.754233077 +0000
126 +++ ghostscript-9.22/contrib/pcl3/eprn/gdeveprn.c 2017-11-15 22:41:09.486215276 +0000
127 @@ -36,7 +36,7 @@
128 /*****************************************************************************/
130 #ifndef _XOPEN_SOURCE
131 -#define _XOPEN_SOURCE 500
132 +#define _XOPEN_SOURCE 700
133 #endif
135 /* Preprocessor symbol with version-dependent default */
137 --- ghostscript-9.22/contrib/pcl3/eprn/eprnfs.c.orig 2017-11-15 22:39:33.762834725 +0000
138 +++ ghostscript-9.22/contrib/pcl3/eprn/eprnfs.c 2017-11-15 22:41:14.645748439 +0000
139 @@ -25,7 +25,7 @@
140 /*****************************************************************************/
142 #ifndef _XOPEN_SOURCE
143 -#define _XOPEN_SOURCE 500
144 +#define _XOPEN_SOURCE 700
145 #endif
147 #include "gdeveprn.h"
149 --- ghostscript-9.22/contrib/pcl3/eprn/pagecount.c.orig 2017-11-15 22:39:33.772209213 +0000
150 +++ ghostscript-9.22/contrib/pcl3/eprn/pagecount.c 2017-11-15 22:41:19.848722191 +0000
151 @@ -19,7 +19,7 @@
152 /*****************************************************************************/
154 #ifndef _XOPEN_SOURCE
155 -#define _XOPEN_SOURCE 500
156 +#define _XOPEN_SOURCE 700
157 #endif
159 #include "std.h"
161 --- ghostscript-9.22/freetype/src/tools/ftrandom/ftrandom.c.orig 2017-11-15 22:39:33.778152105 +0000
162 +++ ghostscript-9.22/freetype/src/tools/ftrandom/ftrandom.c 2017-11-15 22:41:27.680390290 +0000
163 @@ -29,7 +29,7 @@
164 /* This file is now part of the FreeType library */
167 -#define _XOPEN_SOURCE 600 /* for `kill', `strdup', `random', and `srandom' */
168 +#define _XOPEN_SOURCE 700 /* for `kill', `strdup', `random', and `srandom' */
171 #include <stdio.h>
173 --- ghostscript-9.22/base/unistd_.h.orig 2017-11-15 22:39:33.786534768 +0000
174 +++ ghostscript-9.22/base/unistd_.h 2017-11-15 22:41:54.677828001 +0000
175 @@ -50,9 +50,9 @@
176 # define isatty(fd) _isatty(fd)
177 # define setmode(fd, mode) _setmode(fd, mode)
178 #else
179 - /* _XOPEN_SOURCE 500 define is needed to get
180 + /* _XOPEN_SOURCE 700 define is needed to get
181 * access to pread and pwrite */
182 -# define _XOPEN_SOURCE 500
183 +# define _XOPEN_SOURCE 700
184 # define __USE_UNIX98
185 # include <unistd.h>
186 #endif