1 --- vte-0.78.2/src/reaper.cc.orig
2 +++ vte-0.78.2/src/reaper.cc
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);
11 g_signal_connect(reaper,
16 - g_print("[parent] Not waiting for %d.\n", q);
17 + g_print("[parent] Not waiting for %ld.\n", (long) q);
21 --- vte-0.78.2/src/vte.cc.orig
22 +++ vte-0.78.2/src/vte.cc
23 @@ -3708,15 +3708,15 @@
26 _VTE_DEBUG_IF (VTE_DEBUG_LIFECYCLE) {
27 - g_printerr ("Child[%d] exited with status %d\n",
29 + g_printerr ("Child[%ld] exited with status %d\n",
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));
45 --- vte-0.78.2/src/widget.cc.orig
46 +++ vte-0.78.2/src/widget.cc
51 -#include <sys/wait.h> // for W_EXITCODE
52 +#define W_EXITCODE(ret, sig) ((ret) << 8 | (sig))