[PATCH] fix AIX compile

Petter Reinholdtsen pere at hungry.com
Wed Aug 18 09:46:29 GMT 2004


I needed to do this small change to rsync.h to get rsync 2.6.2 to
compile on AIX.  The problem is that the extra comma is illegal
(someone forgot to add support for it) in C89, and the AIX compiler do
not accept it.  The compiler I'm using is not yet updated to support
C99 where the comma was allowed to stay.

Please apply this patch to the next version of rsync.

diff -ur src-2.6.2/rsync.h src-2.6.2-local/rsync.h
--- src-2.6.2/rsync.h   2004-04-27 03:36:16.000000000 +0200
+++ src-2.6.2-local/rsync.h     2004-08-18 11:36:18.000000000 +0200
@@ -123,7 +123,7 @@
        MSG_DATA=0,     /* raw data on the multiplexed stream */
        MSG_ERROR=FERROR, MSG_INFO=FINFO, MSG_LOG=FLOG, /* remote logging */
        MSG_REDO=4,     /* reprocess indicated flist index */
-       MSG_DONE=5,     /* current phase is done */
+       MSG_DONE=5      /* current phase is done */

 #include "errcode.h"

More information about the rsync mailing list