X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/7508b795bf32de44aa550500d56b3935df5c33a7..536b84680b4ab1f29fa456b4fa7b5b16eff4af8f:/rsync.h diff --git a/rsync.h b/rsync.h index 8592984b..0477a4c4 100644 --- a/rsync.h +++ b/rsync.h @@ -595,6 +595,20 @@ void rsyserr(enum logcode, int, const char *, ...) #define inet_ntoa rep_inet_ntoa #endif +/* Compatibility defines so that platforms that don't distinguish between + * text and binary files (like Cygwin does) can use the same code. */ +#ifndef O_TEXT +#define O_TEXT 0 +#define O_TEXT_STR "" +#else +#define O_TEXT_STR "t" +#endif +#ifndef O_BINARY +#define O_BINARY 0 +#define O_BINARY_STR "" +#else +#define O_BINARY_STR "b" +#endif #ifndef HAVE_STRLCPY size_t strlcpy(char *d, const char *s, size_t bufsize);