X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/536b84680b4ab1f29fa456b4fa7b5b16eff4af8f..931a979904a17a28af6265b60a088824edb78fa7:/syscall.c diff --git a/syscall.c b/syscall.c index c620f607..58f1f677 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++;