1 diff -ru gpgme.orig/src/debug.h gpgme/src/debug.h
2 --- gpgme.orig/src/debug.h
4 @@ -180,7 +180,7 @@ static inline gpgme_ssize_t
5 _trace_sysres_ssize_t (gpgme_ssize_t res, int lvl, const char *func, int line)
8 - _gpgme_debug (NULL, lvl, 3, func, NULL, NULL, "result=%zd", (ssize_t)res);
9 + _gpgme_debug (NULL, lvl, 3, func, NULL, NULL, "result=%zd", res);
11 _gpgme_debug (NULL, lvl, -1, NULL, NULL, NULL,
12 "%s:%d: error: %s (%d)\n",
13 diff -ru gpgme.orig/src/dirinfo.c gpgme/src/dirinfo.c
14 --- gpgme.orig/src/dirinfo.c 2017-03-21 11:09:41.000000000 +0100
15 +++ gpgme/src/dirinfo.c 2017-09-30 08:36:13.239279300 +0200
18 DEFINE_STATIC_LOCK (dirinfo_lock);
24 /* Constants used internally to select the data. */
27 diff -ru gpgme.orig/src/gpgme-w32spawn.c gpgme/src/gpgme-w32spawn.c
28 --- gpgme.orig/src/gpgme-w32spawn.c 2023-10-27 21:27:30.000000000 +0900
29 +++ gpgme/src/gpgme-w32spawn.c 2024-02-26 17:32:59.949338645 +0900
31 #define mystderr stderr
35 +#define snwprintf _snwprintf
40 diff -ru gpgme.orig/src/mbox-util.c gpgme/src/mbox-util.c
41 --- gpgme.orig/src/mbox-util.c 2016-11-16 13:22:41.000000000 +0100
42 +++ gpgme/src/mbox-util.c 2017-09-30 08:18:29.270567500 +0200
52 #include "mbox-util.h"
53 diff -ru gpgme.orig/src/priv-io.h gpgme/src/priv-io.h
54 --- gpgme.orig/src/priv-io.h 2016-11-16 13:23:14.000000000 +0100
55 +++ gpgme/src/priv-io.h 2017-09-30 08:20:38.770562400 +0200
57 #ifdef HAVE_SYS_TYPES_H
58 # include <sys/types.h>
65 /* A single file descriptor passed to spawn. For child fds, dup_to
66 diff -ru gpgme.orig/src/util.h gpgme/src/util.h
67 --- gpgme.orig/src/util.h 2017-03-28 11:41:30.000000000 +0200
68 +++ gpgme/src/util.h 2017-09-30 08:10:54.194049100 +0200
79 diff -ru gpgme.orig/src/w32-util.c gpgme/src/w32-util.c
80 --- gpgme.orig/src/w32-util.c 2017-03-09 09:01:10.000000000 +0100
81 +++ gpgme/src/w32-util.c 2017-09-30 08:32:02.114330500 +0200
84 XXXXXX[5] = letters[v % 62];
86 - fd = open (tmpl, O_RDWR | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR);
87 + //fd = open (tmpl, O_RDWR | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR);
88 + fd = open (tmpl, O_RDWR | O_CREAT | O_EXCL);
91 gpg_err_set_errno (save_errno);
92 diff -ru gpgme.orig/src/Makefile.am gpgme/src/Makefile.am
93 --- gpgme.orig/src/Makefile.am 2017-09-30 11:50:07.456960000 +0200
94 +++ gpgme/src/Makefile.am 2017-09-30 11:51:29.609649400 +0200
96 m4data_DATA = gpgme.m4
97 nodist_include_HEADERS = gpgme.h
99 -bin_PROGRAMS = gpgme-tool gpgme-json
103 ltlib_gpgme_glib = libgpgme-glib.la
104 @@ -107,11 +107,11 @@
105 # versions, because then every object file is only compiled once.
106 AM_CFLAGS = @LIBASSUAN_CFLAGS@ @GPG_ERROR_CFLAGS@ @GLIB_CFLAGS@
108 -gpgme_tool_SOURCES = gpgme-tool.c argparse.c argparse.h
109 -gpgme_tool_LDADD = libgpgme.la @LIBASSUAN_LIBS@ @GPG_ERROR_LIBS@
110 +gpgme_tool_SOURCES =
113 -gpgme_json_SOURCES = gpgme-json.c cJSON.c cJSON.h
114 -gpgme_json_LDADD = -lm libgpgme.la $(GPG_ERROR_LIBS)
115 +gpgme_json_SOURCES =
124 - $(LTRCCOMPILE) -i "$<" -o "$@"
125 + $(LTRCCOMPILE) -i $< -o $@
127 gpgme_res = versioninfo.lo
128 no_undefined = -no-undefined
129 diff -ru gpgme.orig/src/vfs-mount.c gpgme/src/vfs-mount.c
130 --- gpgme.orig/src/vfs-mount.c 2017-03-09 09:01:10.000000000 +0100
131 +++ gpgme/src/vfs-mount.c 2017-09-30 13:10:51.845807600 +0200
136 - if (! strcasecmp ("MOUNTPOINT", code))
137 + if (! _stricmp ("MOUNTPOINT", code))
139 if (opd->result.mount_dir)
140 free (opd->result.mount_dir);
141 diff -ur gpgmepp.org/src/w32-glib-io.c gpgmepp/src/w32-glib-io.c
142 --- gpgmepp.org/src/w32-glib-io.c 2016-11-16 13:22:41.000000000 +0100
143 +++ gpgmepp/src/w32-glib-io.c 2017-11-20 06:40:44.793945300 +0100
145 #ifdef HAVE_SYS_TYPES_H
146 # include <sys/types.h>
148 +#include <winsock2.h>