From: David Dykstra Date: Wed, 29 Dec 1999 21:11:57 +0000 (+0000) Subject: Define the WEXITSTATUS macro for systems that don't have it. X-Git-Tag: v2.4.0~48 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dcc875e41e1c9865755dbd0cc839e74ac878910e;p=thirdparty%2Frsync.git Define the WEXITSTATUS macro for systems that don't have it. --- 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);