18 lines
564 B
Diff
18 lines
564 B
Diff
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.
|
|
|
|
--- src/terminal.c
|
|
+++ 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 {
|