aboutsummaryrefslogblamecommitdiffstats
path: root/community/gnome-terminal/fix-W_EXITCODE.patch
blob: 6eda24ae7eea384877026da97b517497cb89df07 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
















                                                                                                                              
Source: https://mail-archives.apache.org/mod_mbox/mesos-reviews/201610.mbox/%3C20161014170728.1720.54446@reviews.apache.org%3E
Upstream: No
Reason: fixes compilation with musl that doesn't define W* macros.

--- a/src/terminal.c
+++ b/src/terminal.c
@@ -47,6 +47,10 @@
 GS_DEFINE_CLEANUP_FUNCTION0(TerminalOptions*, gs_local_options_free, terminal_options_free)
 #define gs_free_options __attribute__ ((cleanup(gs_local_options_free)))
 
+#ifndef W_EXITCODE
+#define W_EXITCODE(ret, sig)  ((ret) << 8 | (sig))
+#endif
+
 /* Wait-for-exit helper */
 
 typedef struct {