Back out one of the changes in log.c revision 1.62, and always send errors
[rsync/rsync.git] / syscall.c
index c620f60..58f1f67 100644 (file)
--- 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++;