1 diff -ur libgpg-error.org/src/estream.c libgpg-error/src/estream.c
2 --- src/estream.c 2016-11-16 13:22:03.000000000 +0100
3 +++ src/estream.c~ 2017-02-19 17:53:15.010869000 +0100
9 +/*#include <sys/file.h>*/
26 #ifdef HAVE_W32_SYSTEM
28 +# define S_IRUSR _S_IREAD
31 +# define S_IWUSR _S_IWRITE
34 +# define S_IXUSR 0x00400000
37 # define S_IRGRP S_IRUSR
39 diff -ur libgpg-error.org/src/estream-printf.c libgpg-error/src/estream-printf.c
40 --- src/estream-printf.c 2016-12-02 22:51:19.000000000 +0100
41 +++ src/estream-printf.c~ 2017-02-19 18:02:52.239383500 +0100
55 --- src/mkheader.c 2016-11-16 13:22:03.000000000 +0100
56 +++ src/mkheader.c~ 2017-02-19 17:35:32.172009000 +0100
68 #define PGM "mkheader"
72 repl_flag = !!strchr (name, '&');
73 incfname = mk_include_name (name, repl_flag? host_triplet : NULL);
75 + rc = _access (incfname, 04);
77 rc = access (incfname, R_OK);
82 incfname = mk_include_name (name, host_os);
84 + rc = _access (incfname, 04);
86 rc = access (incfname, R_OK);
90 include_file (fname, lnr, name, outf);
91 diff -ur libgpg-error.org/src/w32-estream.c libgpg-error/src/w32-estream.c
92 --- src/w32-estream.c 2016-11-16 13:22:03.000000000 +0100
93 +++ src/w32-estream.c~ 2017-02-19 17:37:35.879037500 +0100
96 #include "gpgrt-int.h"
99 +/* no ssize_t in windows std headers, emulate for native build */
100 +typedef SSIZE_T ssize_t;
104 * In order to support es_poll on Windows, we create a proxy shim that
105 * we use as the estream I/O functions. This shim creates reader and
106 --- src/spawn-w32.c 2019-08-22 12:30:38.000000000 +0200
107 +++ src/spawn-w32.c~ 2020-05-26 01:37:17.759077700 +0200
116 +# include <unistd.h>
120 # include <sys/stat.h>