[glib: 1/2] gmain: define non-posix symbols




commit 871e5708679b96e63ee574f5c74e0e746f4be9a4
Author: Owen Rafferty <owen owenrafferty com>
Date:   Tue Jul 12 20:03:56 2022 -0500

    gmain: define non-posix symbols

 glib/gmain.c | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/glib/gmain.c b/glib/gmain.c
index fcf0b3dbab..af1ed66b44 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]