2004-10-19 Roland McGrath <roland@redhat.com>

* process.c (WCOREFLAG): Define if not defined.
	(W_STOPCODE, W_EXITCODE): Likewise.
	Reported by Marty Leisner <mleisner@eng.mc.xerox.com>.
This commit is contained in:
Roland McGrath 2004-10-19 23:33:47 +00:00
parent c5fa4ac3f0
commit 5e02a5793d

View File

@ -1775,6 +1775,20 @@ static const struct xlat wait4_options[] = {
{ 0, NULL },
};
#if !defined WCOREFLAG && defined WCOREFLG
# define WCOREFLAG WCOREFLG
#endif
#ifndef WCOREFLAG
#define WCOREFLAG 0x80
#endif
#ifndef W_STOPCODE
#define W_STOPCODE(sig) ((sig) << 8 | 0x7f)
#endif
#ifndef W_EXITCODE
#define W_EXITCODE(ret, sig) ((ret) << 8 | (sig))
#endif
static int
printstatus(status)
int status;