blob: b4100fc381e9a8de5c8d1ddc36ae990f5027c691 [file] [log] [blame]
Andrew Geissler6ce62a22020-11-30 19:58:47 -06001From de9639baac792327c701e509258b8a13f6959e82 Mon Sep 17 00:00:00 2001
Brad Bishopc342db32019-05-15 21:57:59 -04002From: Danilo Spinella <danyspin97@protonmail.com>
3Date: Thu, 21 Mar 2019 14:19:26 +0100
4Subject: [PATCH] Add W_EXITCODE macro for non-glibc systems
Andrew Geissler6ce62a22020-11-30 19:58:47 -06005MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
Brad Bishopc342db32019-05-15 21:57:59 -04008
9Upstream-Status: Submitted [1]
10
11Signed-off-by: Andreas MΓΌller <schnitzeltony@gmail.com>
12
13[1] https://gitlab.gnome.org/GNOME/vte/issues/72
14
15---
Andrew Geissler6ce62a22020-11-30 19:58:47 -060016 src/missing.hh | 4 ++++
17 src/widget.cc | 1 +
18 2 files changed, 5 insertions(+)
Brad Bishopc342db32019-05-15 21:57:59 -040019
Andrew Geissler6ce62a22020-11-30 19:58:47 -060020--- a/src/missing.hh
Brad Bishopc342db32019-05-15 21:57:59 -040021+++ b/src/missing.hh
Andrew Geisslerc926e172021-05-07 16:11:35 -050022@@ -24,6 +24,10 @@
23 #define NSIG (8 * sizeof(sigset_t))
Andrew Geissler6ce62a22020-11-30 19:58:47 -060024 #endif
Andrew Geisslerc926e172021-05-07 16:11:35 -050025
Brad Bishopc342db32019-05-15 21:57:59 -040026+#ifndef W_EXITCODE
27+#define W_EXITCODE(ret, sig) ((ret) << 8 | (sig))
28+#endif
Andrew Geisslerc926e172021-05-07 16:11:35 -050029+
30 #ifndef HAVE_FDWALK
31 int fdwalk(int (*cb)(void* data, int fd),
32 void* data);
Brad Bishopc342db32019-05-15 21:57:59 -040033--- a/src/widget.cc
34+++ b/src/widget.cc
35@@ -21,6 +21,7 @@
36 #include "widget.hh"
37
38 #include <sys/wait.h> // for W_EXITCODE
39+#include "missing.hh" // for W_EXITCODE on non-glibc systems
40
Andrew Geissler6ce62a22020-11-30 19:58:47 -060041 #include <exception>
Brad Bishopc342db32019-05-15 21:57:59 -040042 #include <new>