openexr: make architecture independent
[oi-userland.git] / components / library / vte-291 / patches / 07-src-reaper.cc.patch
blobb28f12859a4760d3301af28383b2fbe4b808f6a9
1 --- vte-0.52.2/src/reaper.cc 2018-05-21 21:30:33.000000000 +0000
2 +++ vte-0.52.2/src/reaper.cc.new 2018-10-02 20:39:43.042906096 +0000
3 @@ -189,7 +189,7 @@ main(int argc, char **argv)
4 _exit(30);
5 break;
6 default:
7 - g_print("[parent] Starting to wait for %d.\n", p);
8 + g_print("[parent] Starting to wait for %ld.\n", (long) p);
9 vte_reaper_add_child(p);
10 child = p;
11 g_signal_connect(reaper,
12 @@ -213,7 +213,7 @@ main(int argc, char **argv)
13 _exit(5);
14 break;
15 default:
16 - g_print("[parent] Not waiting for %d.\n", q);
17 + g_print("[parent] Not waiting for %ld.\n", (long) q);
18 break;
21 --- vte-0.54.1/src/vte.cc 2018-10-02 22:10:15.377802847 +0000
22 +++ vte-0.54.1/src/vte.cc.new 2018-10-02 22:13:06.933015325 +0000
23 @@ -3038,15 +3038,15 @@ Terminal::child_watch_done(pid_t pid,
24 g_object_freeze_notify(object);
26 _VTE_DEBUG_IF (VTE_DEBUG_LIFECYCLE) {
27 - g_printerr ("Child[%d] exited with status %d\n",
28 - pid, status);
29 + g_printerr ("Child[%ld] exited with status %d\n",
30 + (long)pid, status);
31 #ifdef HAVE_SYS_WAIT_H
32 if (WIFEXITED (status)) {
33 - g_printerr ("Child[%d] exit code %d.\n",
34 - pid, WEXITSTATUS (status));
35 + g_printerr ("Child[%ld] exit code %d.\n",
36 + (long)pid, WEXITSTATUS (status));
37 } else if (WIFSIGNALED (status)) {
38 - g_printerr ("Child[%d] dies with signal %d.\n",
39 - pid, WTERMSIG (status));
40 + g_printerr ("Child[%ld] dies with signal %d.\n",
41 + (long)pid, WTERMSIG (status));
43 #endif
45 @@ -3609,7 +3609,7 @@ Terminal::process_incoming()
46 if (G_UNLIKELY(rv < 0)) {
47 uint32_t c = m_utf8_decoder.codepoint();
48 char c_buf[7];
49 - g_snprintf(c_buf, sizeof(c_buf), "%lc", c);
50 + g_snprintf(c_buf, sizeof(c_buf), "%u", (unsigned int)c);
51 char const* wp_str = g_unichar_isprint(c) ? c_buf : _vte_debug_sequence_to_string(c_buf, -1);
52 _vte_debug_print(VTE_DEBUG_PARSER, "Parser error on U+%04X [%s]!\n",
53 c, wp_str);
54 --- vte-0.54.1/src/widget.cc 2018-09-24 22:43:05.000000000 +0000
55 +++ vte-0.54.1/src/widget.cc.new 2018-10-02 22:32:31.082973956 +0000
56 @@ -20,7 +20,7 @@
58 #include "widget.hh"
60 -#include <sys/wait.h> // for W_EXITCODE
61 +#define W_EXITCODE(ret, sig) ((ret) << 8 | (sig))
63 #include <new>
64 #include <string>