diff options
Diffstat (limited to 'meta/recipes-support/vte/vte/0001-Add-W_EXITCODE-macro-for-non-glibc-systems.patch')
-rw-r--r-- | meta/recipes-support/vte/vte/0001-Add-W_EXITCODE-macro-for-non-glibc-systems.patch | 38 |
1 files changed, 15 insertions, 23 deletions
diff --git a/meta/recipes-support/vte/vte/0001-Add-W_EXITCODE-macro-for-non-glibc-systems.patch b/meta/recipes-support/vte/vte/0001-Add-W_EXITCODE-macro-for-non-glibc-systems.patch index a1d2e7ff27..8934d5f80a 100644 --- a/meta/recipes-support/vte/vte/0001-Add-W_EXITCODE-macro-for-non-glibc-systems.patch +++ b/meta/recipes-support/vte/vte/0001-Add-W_EXITCODE-macro-for-non-glibc-systems.patch | |||
@@ -11,33 +11,25 @@ Upstream-Status: Submitted [1] | |||
11 | Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> | 11 | Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> |
12 | 12 | ||
13 | [1] https://gitlab.gnome.org/GNOME/vte/issues/72 | 13 | [1] https://gitlab.gnome.org/GNOME/vte/issues/72 |
14 | |||
15 | --- | 14 | --- |
16 | src/missing.hh | 4 ++++ | 15 | src/widget.cc | 4 +++ |
17 | src/widget.cc | 1 + | 16 | 1 files changed, 4 insertions(+) |
18 | 2 files changed, 5 insertions(+) | ||
19 | 17 | ||
20 | diff --git a/src/missing.hh b/src/missing.hh | ||
21 | index 0742270..30ede62 100644 | ||
22 | --- a/src/missing.hh | ||
23 | +++ b/src/missing.hh | ||
24 | @@ -33,3 +33,7 @@ int fdwalk(int (*cb)(void* data, int fd), | ||
25 | char* strchrnul(char const* s, | ||
26 | int c); | ||
27 | #endif | ||
28 | + | ||
29 | +#ifndef W_EXITCODE | ||
30 | +#define W_EXITCODE(ret, sig) ((ret) << 8 | (sig)) | ||
31 | +#endif | ||
32 | diff --git a/src/widget.cc b/src/widget.cc | 18 | diff --git a/src/widget.cc b/src/widget.cc |
33 | index 44a2271..0668735 100644 | 19 | index 07f7cabf..31a77f68 100644 |
34 | --- a/src/widget.cc | 20 | --- a/src/widget.cc |
35 | +++ b/src/widget.cc | 21 | +++ b/src/widget.cc |
36 | @@ -21,6 +21,7 @@ | 22 | @@ -16,6 +16,10 @@ |
37 | #include "widget.hh" | 23 | * along with this library. If not, see <https://www.gnu.org/licenses/>. |
24 | */ | ||
38 | 25 | ||
39 | #include <sys/wait.h> // for W_EXITCODE | 26 | +#ifndef W_EXITCODE |
40 | +#include "missing.hh" // for W_EXITCODE on non-glibc systems | 27 | +#define W_EXITCODE(ret, sig) ((ret) << 8 | (sig)) |
28 | +#endif | ||
29 | + | ||
30 | #include "config.h" | ||
41 | 31 | ||
42 | #include <exception> | 32 | #include "widget.hh" |
43 | #include <new> | 33 | -- |
34 | 2.42.0 | ||
35 | |||