X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/011e85a5e3a80e9229887468aad206a389f67552..e0930845ce339fc51f607ba19bc40a8685118b91:/rsync.h diff --git a/rsync.h b/rsync.h index f044962e..a70c241c 100644 --- a/rsync.h +++ b/rsync.h @@ -659,10 +659,7 @@ struct chmod_mode_struct; #include "lib/permstring.h" #include "lib/addrinfo.h" -#if !defined __GNUC__ || defined __APPLE__ -/* Apparently the OS X port of gcc gags on __attribute__. - * - * */ +#ifndef __GNUC__ #define __attribute__(x) #endif @@ -857,6 +854,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__)