From 47b032e97fdd94a2b8d834483b017cc227e1ae7e Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Tue, 24 Oct 2006 03:31:30 +0000 Subject: [PATCH] Added a define for WIFEXITED() that is used if one is missing. --- rsync.h | 3 +++ 1 file changed, 3 insertions(+) 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__) -- 2.34.1