diff options
Diffstat (limited to 'community/gnome-terminal/fix-W_EXITCODE.patch')
-rw-r--r-- | community/gnome-terminal/fix-W_EXITCODE.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/community/gnome-terminal/fix-W_EXITCODE.patch b/community/gnome-terminal/fix-W_EXITCODE.patch new file mode 100644 index 0000000000..6eda24ae7e --- /dev/null +++ b/community/gnome-terminal/fix-W_EXITCODE.patch @@ -0,0 +1,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 { |