forked from kiss-community/repo
18 lines
425 B
Diff
18 lines
425 B
Diff
diff --git a/glib/gmain.c b/glib/gmain.c
|
|
index fcf0b3dba..af1ed66b4 100644
|
|
--- a/glib/gmain.c
|
|
+++ b/glib/gmain.c
|
|
@@ -73,6 +73,12 @@
|
|
#include <sys/syscall.h>
|
|
#include <sys/wait.h>
|
|
#include <linux/wait.h> /* P_PIDFD */
|
|
+#ifndef W_EXITCODE
|
|
+#define W_EXITCODE(ret, sig) ((ret) << 8 | (sig))
|
|
+#endif
|
|
+#ifndef W_STOPCODE
|
|
+#define W_STOPCODE(sig) ((sig) << 8 | 0x7f)
|
|
+#endif
|
|
#endif /* HAVE_PIDFD */
|
|
|
|
#ifdef G_OS_WIN32
|