From: Roland McGrath Date: Tue, 19 Oct 2004 23:33:47 +0000 (+0000) Subject: 2004-10-19 Roland McGrath X-Git-Tag: v4.5.18~481 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5e02a5793d981265072d606fcb2293d80e73824f;p=strace 2004-10-19 Roland McGrath * process.c (WCOREFLAG): Define if not defined. (W_STOPCODE, W_EXITCODE): Likewise. Reported by Marty Leisner . --- diff --git a/process.c b/process.c index 19ecebe5..0a7f4868 100644 --- a/process.c +++ b/process.c @@ -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;