2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-12-25 08:40:10 -07:00
repo/extra/glib/patches/musl.patch
2022-07-12 20:10:17 -05:00

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