]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
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 f044962e1867f18c280b4a98b673a1f2cf958647..a366f8a0f514c35faeff87aa7e97f47e0817657a 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__)