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-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/dcc875e41e1c9865755dbd0cc839e74ac878910e 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);