From: Wayne Davison Date: Tue, 24 Oct 2006 03:31:30 +0000 (+0000) Subject: Added a define for WIFEXITED() that is used if one is missing. X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/47b032e97fdd94a2b8d834483b017cc227e1ae7e Added a define for WIFEXITED() that is used if one is missing. --- diff --git a/rsync.h b/rsync.h index f044962e..a366f8a0 100644 --- a/rsync.h +++ b/rsync.h @@ -857,6 +857,9 @@ size_t strlcat(char *d, const char *s, size_t bufsize); #ifndef WEXITSTATUS #define WEXITSTATUS(stat) ((int)(((stat)>>8)&0xFF)) #endif +#ifndef WIFEXITED +#define WIFEXITED(stat) ((int)((stat)&0xFF) == 0) +#endif #define exit_cleanup(code) _exit_cleanup(code, __FILE__, __LINE__)