X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/1b01b295c960fd6b9fb0c3fdb961010c22b2c898..a3418f2e97890a9c799746399b96bcf721235362:/rsync.h diff --git a/rsync.h b/rsync.h index ce360185..34792fc9 100644 --- a/rsync.h +++ b/rsync.h @@ -19,7 +19,13 @@ #define BLOCK_SIZE 700 #define RSYNC_RSH_ENV "RSYNC_RSH" + +#if HAVE_REMSH +#define RSYNC_RSH "remsh" +#else #define RSYNC_RSH "rsh" +#endif + #define RSYNC_NAME "rsync" #define BACKUP_SUFFIX "~" @@ -130,6 +136,10 @@ #include #endif +#ifdef HAVE_SYS_SELECT_H +#include +#endif + #ifdef HAVE_FNMATCH #include #else @@ -277,11 +287,31 @@ extern int errno; #define lstat stat #endif +#ifndef HAVE_LCHOWN +#define lchown chown +#endif + #define SIGNAL_CAST (RETSIGTYPE (*)()) #ifndef EWOULDBLOCK #define EWOULDBLOCK EAGAIN #endif +#ifndef STDIN_FILENO +#define STDIN_FILENO 0 +#endif + +#ifndef STDOUT_FILENO +#define STDOUT_FILENO 1 +#endif + +#ifndef STDERR_FILENO +#define STDERR_FILENO 2 +#endif + +#ifndef S_IWUSR +#define S_IWUSR 0200 +#endif + #define IS_DEVICE(mode) (S_ISCHR(mode) || S_ISBLK(mode))