diff options
author | David Dykstra <dwd@samba.org> | 1999-12-29 21:11:57 +0000 |
---|---|---|
committer | David Dykstra <dwd@samba.org> | 1999-12-29 21:11:57 +0000 |
commit | dcc875e41e1c9865755dbd0cc839e74ac878910e (patch) | |
tree | 7bc8c1eb95657e0985015a3b7f130cd42ab58f5a /util.c | |
parent | 128cf58433592234d105f2b29865d0f739629cb3 (diff) | |
download | rsync-dcc875e41e1c9865755dbd0cc839e74ac878910e.tar.gz |
Define the WEXITSTATUS macro for systems that don't have it.
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); |