Fix windows build

This commit is contained in:
Yasuhiro Matsumoto
2016-03-16 00:37:23 +09:00
parent 38699e3a81
commit 8c79501738
2 changed files with 6 additions and 0 deletions
+2
View File
@@ -194,7 +194,9 @@ static int mapFileFlags(int flags)
if (flags & 0x01) result |= O_RDONLY;
if (flags & 0x02) result |= O_WRONLY;
if (flags & 0x04) result |= O_RDWR;
#ifdef O_SYNC
if (flags & 0x08) result |= O_SYNC;
#endif
if (flags & 0x10) result |= O_CREAT;
if (flags & 0x20) result |= O_TRUNC;
if (flags & 0x40) result |= O_EXCL;