Added back the O_BINARY #ifdef.

This commit is contained in:
Wayne Davison committed 2003-01-26 20:09:02 +00:00
1 parent 0090cbdba6
commit 855decd3a7
1 file changed
+2 -2
+2 -2
View File
@@ -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++;