From dcc875e41e1c9865755dbd0cc839e74ac878910e Mon Sep 17 00:00:00 2001 From: David Dykstra Date: Wed, 29 Dec 1999 21:11:57 +0000 Subject: [PATCH] Define the WEXITSTATUS macro for systems that don't have it. --- util.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/util.c b/util.c index 3cb80eb9..f67dff0e 100644 --- a/util.c +++ b/util.c @@ -874,6 +874,9 @@ char *timestring(time_t t) /**************************************************************************** like waitpid but does the WEXITSTATUS ****************************************************************************/ +#ifndef WEXITSTATUS +#define WEXITSTATUS(stat) ((int)(((stat)>>8)&0xFF)) +#endif void wait_process(pid_t pid, int *status) { waitpid(pid, status, 0); -- 2.34.1