Added a define for WIFEXITED() that is used if one is missing.
authorWayne Davison <wayned@samba.org>
Tue, 24 Oct 2006 03:31:30 +0000 (03:31 +0000)
committerWayne Davison <wayned@samba.org>
Tue, 24 Oct 2006 03:31:30 +0000 (03:31 +0000)
rsync.h

diff --git a/rsync.h b/rsync.h
index f044962..a366f8a 100644 (file)
--- 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__)