1 In house patch to use XPG7 standard
2 NOTE : This patch will not be pushed upstream, as community is using
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
8 /*****************************************************************************/
11 -#define _XOPEN_SOURCE 500
12 +#define _XOPEN_SOURCE 700
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
20 /*****************************************************************************/
23 -#define _XOPEN_SOURCE 500
24 +#define _XOPEN_SOURCE 700
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
32 /*****************************************************************************/
35 -#define _XOPEN_SOURCE 500
36 +#define _XOPEN_SOURCE 700
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
44 /*****************************************************************************/
47 -#define _XOPEN_SOURCE 500
48 +#define _XOPEN_SOURCE 700
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
56 /*****************************************************************************/
59 -#define _XOPEN_SOURCE 500
60 +#define _XOPEN_SOURCE 700
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
68 /*****************************************************************************/
71 -#define _XOPEN_SOURCE 500
72 +#define _XOPEN_SOURCE 700
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
80 /*****************************************************************************/
83 -#define _XOPEN_SOURCE 500
84 +#define _XOPEN_SOURCE 700
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
92 /*****************************************************************************/
95 -#define _XOPEN_SOURCE 500
96 +#define _XOPEN_SOURCE 700
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
104 /*****************************************************************************/
106 #ifndef _XOPEN_SOURCE
107 -#define _XOPEN_SOURCE 500
108 +#define _XOPEN_SOURCE 700
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
116 /*****************************************************************************/
118 #ifndef _XOPEN_SOURCE
119 -#define _XOPEN_SOURCE 500
120 +#define _XOPEN_SOURCE 700
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
128 /*****************************************************************************/
130 #ifndef _XOPEN_SOURCE
131 -#define _XOPEN_SOURCE 500
132 +#define _XOPEN_SOURCE 700
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
140 /*****************************************************************************/
142 #ifndef _XOPEN_SOURCE
143 -#define _XOPEN_SOURCE 500
144 +#define _XOPEN_SOURCE 700
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
152 /*****************************************************************************/
154 #ifndef _XOPEN_SOURCE
155 -#define _XOPEN_SOURCE 500
156 +#define _XOPEN_SOURCE 700
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
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' */
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
176 # define isatty(fd) _isatty(fd)
177 # define setmode(fd, mode) _setmode(fd, mode)
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