X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/7508b795bf32de44aa550500d56b3935df5c33a7..536b84680b4ab1f29fa456b4fa7b5b16eff4af8f:/syscall.c diff --git a/syscall.c b/syscall.c index 58f1f677..c620f607 100644 --- a/syscall.c +++ b/syscall.c @@ -85,10 +85,10 @@ int do_open(char *pathname, int flags, mode_t mode) if (dry_run) return -1; CHECK_RO } -#ifdef O_BINARY + /* for Windows */ flags |= O_BINARY; -#endif + /* some systems can't handle a double / */ if (pathname[0] == '/' && pathname[1] == '/') pathname++;