--- rsync-2.6.9/rsync.h 2006-10-23 20:31:30.000000000 -0700 +++ rsync.h 2007-04-11 19:50:43.000000000 -0700 @@ -659,15 +659,18 @@ 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) +#else +# if __GNUC__ <= 2 +# define NORETURN +# endif #endif #define UNUSED(x) x __attribute__((__unused__)) +#ifndef NORETURN #define NORETURN __attribute__((__noreturn__)) +#endif #include "proto.h"