X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/94481d9113220ded7ee6a76a96fa468c79680478..182dca5c80c40c5abe429a6c5307be25cc4b4d90:/rsync.h diff --git a/rsync.h b/rsync.h index ae430468..2b3b6464 100644 --- a/rsync.h +++ b/rsync.h @@ -24,11 +24,14 @@ #define BACKUP_SUFFIX "~" /* update this if you make incompatible changes */ -#define PROTOCOL_VERSION 9 +#define PROTOCOL_VERSION 10 +#define MIN_PROTOCOL_VERSION 10 /* block size to write files in */ #define WRITE_BLOCK_SIZE (32*1024) +#define BLOCKING_TIMEOUT 10 + #include "config.h" #include @@ -236,3 +239,9 @@ extern int errno; #endif #define SIGNAL_CAST (RETSIGTYPE (*)()) + +#ifndef EWOULDBLOCK +#define EWOULDBLOCK EAGAIN +#endif + +#define IS_DEVICE(mode) (S_ISCHR(mode) || S_ISBLK(mode))