summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorDavid Dykstra <dwd@samba.org>1999-12-29 21:11:57 +0000
committerDavid Dykstra <dwd@samba.org>1999-12-29 21:11:57 +0000
commitdcc875e41e1c9865755dbd0cc839e74ac878910e (patch)
tree7bc8c1eb95657e0985015a3b7f130cd42ab58f5a /util.c
parent128cf58433592234d105f2b29865d0f739629cb3 (diff)
downloadrsync-dcc875e41e1c9865755dbd0cc839e74ac878910e.tar.gz
rsync-dcc875e41e1c9865755dbd0cc839e74ac878910e.tar.bz2
rsync-dcc875e41e1c9865755dbd0cc839e74ac878910e.zip
Define the WEXITSTATUS macro for systems that don't have it.
Diffstat (limited to 'util.c')
-rw-r--r--util.c3
1 files changed, 3 insertions, 0 deletions
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);