--- rsync.h.orig	2006-01-09 12:35:38.000000000 -0600
+++ rsync.h	2006-01-09 12:35:51.000000000 -0600
@@ -864,3 +864,9 @@
 #define UNUSED(x) x __attribute__((__unused__))
 
 extern const char *io_write_phase, *io_read_phase;
+ /* hack for building fat on Mac OS X */
+
+#if defined(__APPLE__) && defined(WORDS_BIGENDIAN)
+#undef WORDS_BIGENDIAN
+#define WORDS_BIGENDIAN __BIG_ENDIAN__
+#endif
