gmain: define non-posix symbols

This commit is contained in:
Owen Rafferty 2022-07-12 20:03:56 -05:00
parent a2f8dca009
commit 871e570867
No known key found for this signature in database
GPG Key ID: A68B10E2554DEBCB

View File

@ -73,6 +73,12 @@
#include <sys/syscall.h> #include <sys/syscall.h>
#include <sys/wait.h> #include <sys/wait.h>
#include <linux/wait.h> /* P_PIDFD */ #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 */ #endif /* HAVE_PIDFD */
#ifdef G_OS_WIN32 #ifdef G_OS_WIN32