Mercurial > mxe-octave
annotate src/msvc-dbus-1.patch @ 6234:97c5f8da5036 release
* src/librsb.mk: update to 1.2.0.11
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Fri, 27 May 2022 12:24:32 +0200 |
parents | 42a34b8928a6 |
children |
rev | line source |
---|---|
3297
42a34b8928a6
[MSVC] Update patch to newer dbus.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3108
diff
changeset
|
1 diff -ur dbus-1.7.6-orig/dbus/Makefile.in dbus-1.7.6/dbus/Makefile.in |
42a34b8928a6
[MSVC] Update patch to newer dbus.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3108
diff
changeset
|
2 --- dbus-1.7.6-orig/dbus/Makefile.in 2013-10-09 07:05:16 -0400 |
42a34b8928a6
[MSVC] Update patch to newer dbus.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3108
diff
changeset
|
3 +++ dbus-1.7.6/dbus/Makefile.in 2013-11-08 23:55:33 -0500 |
42a34b8928a6
[MSVC] Update patch to newer dbus.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3108
diff
changeset
|
4 @@ -695,7 +695,7 @@ |
3108
acee522701c0
[MSVC] enable dbus compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
5 @DBUS_WIN_FALSE@no_undefined = |
acee522701c0
[MSVC] enable dbus compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
6 @DBUS_WIN_TRUE@no_undefined = -no-undefined |
acee522701c0
[MSVC] enable dbus compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
7 @DBUS_WIN_FALSE@export_symbols = -export-symbols-regex "^[^_].*" |
acee522701c0
[MSVC] enable dbus compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
8 -@DBUS_WIN_TRUE@export_symbols = |
acee522701c0
[MSVC] enable dbus compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
9 +@DBUS_WIN_TRUE@export_symbols = -export-symbols-regex "xXx" |
3297
42a34b8928a6
[MSVC] Update patch to newer dbus.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3108
diff
changeset
|
10 @DBUS_WIN_TRUE@EXTRA_libdbus_1_la_DEPENDENCIES = $(dbus_res) |
3108
acee522701c0
[MSVC] enable dbus compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
11 @DBUS_WIN_FALSE@intllibs = @LTLIBINTL@ |
acee522701c0
[MSVC] enable dbus compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
12 @DBUS_WIN_TRUE@intllibs = |
3297
42a34b8928a6
[MSVC] Update patch to newer dbus.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3108
diff
changeset
|
13 diff -ur dbus-1.7.6-orig/dbus/dbus-sysdeps-util-win.c dbus-1.7.6/dbus/dbus-sysdeps-util-win.c |
42a34b8928a6
[MSVC] Update patch to newer dbus.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3108
diff
changeset
|
14 --- dbus-1.7.6-orig/dbus/dbus-sysdeps-util-win.c 2013-10-08 13:40:40 -0400 |
42a34b8928a6
[MSVC] Update patch to newer dbus.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3108
diff
changeset
|
15 +++ dbus-1.7.6/dbus/dbus-sysdeps-util-win.c 2013-11-08 23:53:04 -0500 |
42a34b8928a6
[MSVC] Update patch to newer dbus.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3108
diff
changeset
|
16 @@ -107,7 +107,7 @@ |
3108
acee522701c0
[MSVC] enable dbus compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
17 return FALSE; |
acee522701c0
[MSVC] enable dbus compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
18 } |
acee522701c0
[MSVC] enable dbus compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
19 |
acee522701c0
[MSVC] enable dbus compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
20 - if (snprintf (pidstr, sizeof (pidstr), "%lu\n", pid) < 0) |
acee522701c0
[MSVC] enable dbus compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
21 + if (_snprintf (pidstr, sizeof (pidstr), "%lu\n", pid) < 0) |
acee522701c0
[MSVC] enable dbus compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
22 { |
acee522701c0
[MSVC] enable dbus compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
23 dbus_set_error (error, _dbus_error_from_system_errno (), |
acee522701c0
[MSVC] enable dbus compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
24 "Failed to format PID for \"%s\": %s", cfilename, |
3297
42a34b8928a6
[MSVC] Update patch to newer dbus.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3108
diff
changeset
|
25 diff -ur dbus-1.7.6-orig/dbus/dbus-sysdeps-win.c dbus-1.7.6/dbus/dbus-sysdeps-win.c |
42a34b8928a6
[MSVC] Update patch to newer dbus.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3108
diff
changeset
|
26 --- dbus-1.7.6-orig/dbus/dbus-sysdeps-win.c 2013-10-08 13:40:40 -0400 |
42a34b8928a6
[MSVC] Update patch to newer dbus.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3108
diff
changeset
|
27 +++ dbus-1.7.6/dbus/dbus-sysdeps-win.c 2013-11-08 23:53:04 -0500 |
42a34b8928a6
[MSVC] Update patch to newer dbus.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3108
diff
changeset
|
28 @@ -1757,7 +1757,7 @@ |
3108
acee522701c0
[MSVC] enable dbus compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
29 host ? host : "*", port, _dbus_strerror_from_errno()); |
acee522701c0
[MSVC] enable dbus compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
30 goto failed; |
acee522701c0
[MSVC] enable dbus compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
31 } |
acee522701c0
[MSVC] enable dbus compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
32 - snprintf( portbuf, sizeof( portbuf ) - 1, "%d", addr.AddressIn.sin_port ); |
acee522701c0
[MSVC] enable dbus compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
33 + _snprintf( portbuf, sizeof( portbuf ) - 1, "%d", addr.AddressIn.sin_port ); |
acee522701c0
[MSVC] enable dbus compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
34 if (!_dbus_string_append(retport, portbuf)) |
acee522701c0
[MSVC] enable dbus compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
35 { |
acee522701c0
[MSVC] enable dbus compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
36 dbus_set_error (error, DBUS_ERROR_NO_MEMORY, NULL); |
3297
42a34b8928a6
[MSVC] Update patch to newer dbus.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3108
diff
changeset
|
37 diff -ur dbus-1.7.6-orig/dbus/dbus-sysdeps.c dbus-1.7.6/dbus/dbus-sysdeps.c |
42a34b8928a6
[MSVC] Update patch to newer dbus.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3108
diff
changeset
|
38 --- dbus-1.7.6-orig/dbus/dbus-sysdeps.c 2013-10-08 13:40:40 -0400 |
42a34b8928a6
[MSVC] Update patch to newer dbus.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3108
diff
changeset
|
39 +++ dbus-1.7.6/dbus/dbus-sysdeps.c 2013-11-08 23:53:04 -0500 |
42a34b8928a6
[MSVC] Update patch to newer dbus.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3108
diff
changeset
|
40 @@ -56,6 +56,10 @@ |
3108
acee522701c0
[MSVC] enable dbus compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
41 extern char **environ; |
acee522701c0
[MSVC] enable dbus compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
42 #endif |
acee522701c0
[MSVC] enable dbus compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
43 |
acee522701c0
[MSVC] enable dbus compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
44 +#ifdef _MSC_VER |
acee522701c0
[MSVC] enable dbus compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
45 +# define snprintf _snprintf |
acee522701c0
[MSVC] enable dbus compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
46 +#endif |
acee522701c0
[MSVC] enable dbus compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
47 + |
acee522701c0
[MSVC] enable dbus compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
48 /** |
acee522701c0
[MSVC] enable dbus compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
49 * @defgroup DBusSysdeps Internal system-dependent API |
acee522701c0
[MSVC] enable dbus compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
50 * @ingroup DBusInternals |
3297
42a34b8928a6
[MSVC] Update patch to newer dbus.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3108
diff
changeset
|
51 diff -ur dbus-1.7.6-orig/tools/dbus-monitor.c dbus-1.7.6/tools/dbus-monitor.c |
42a34b8928a6
[MSVC] Update patch to newer dbus.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3108
diff
changeset
|
52 --- dbus-1.7.6-orig/tools/dbus-monitor.c 2013-10-09 06:22:07 -0400 |
42a34b8928a6
[MSVC] Update patch to newer dbus.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3108
diff
changeset
|
53 +++ dbus-1.7.6/tools/dbus-monitor.c 2013-11-08 23:53:04 -0500 |
3108
acee522701c0
[MSVC] enable dbus compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
54 @@ -39,6 +39,10 @@ |
acee522701c0
[MSVC] enable dbus compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
55 |
acee522701c0
[MSVC] enable dbus compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
56 #ifdef DBUS_WIN |
acee522701c0
[MSVC] enable dbus compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
57 |
acee522701c0
[MSVC] enable dbus compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
58 +#ifdef _MSC_VER |
acee522701c0
[MSVC] enable dbus compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
59 +#define snprintf _snprintf |
acee522701c0
[MSVC] enable dbus compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
60 +#endif |
acee522701c0
[MSVC] enable dbus compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
61 + |
acee522701c0
[MSVC] enable dbus compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
62 /* gettimeofday is not defined on windows */ |
acee522701c0
[MSVC] enable dbus compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
63 #define DBUS_SECONDS_SINCE_1601 11644473600LL |
acee522701c0
[MSVC] enable dbus compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
64 #define DBUS_USEC_IN_SEC 1000000LL |