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 #include #include /* 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