gmain: define non-posix symbols

This commit is contained in:
Owen Rafferty 2022-07-12 20:03:56 -05:00 committed by Michael Catanzaro
parent 13c62bc181
commit 378c72cbe1

View File

@ -71,6 +71,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