X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/e4c598c830234fe3def0bae6ba45ca54071a9ee5..907e6a32a00ace7cf1e96f9c9132f83f4a208430:/rsync.h diff --git a/rsync.h b/rsync.h index abdb6e02..68f236dc 100644 --- a/rsync.h +++ b/rsync.h @@ -136,6 +136,8 @@ /* For compatibility with older rsyncs */ #define OLD_MAX_BLOCK_SIZE ((int32)1 << 29) +#define ROUND_UP_1024(siz) ((siz) & (1024-1) ? ((siz) | (1024-1)) + 1 : (siz)) + #define IOERR_GENERAL (1<<0) /* For backward compatibility, this must == 1 */ #define IOERR_VANISHED (1<<1) #define IOERR_DEL_LIMIT (1<<2)