Flush
[mono.git] / support / map.c
index 7016ea3509a350a1c2fbf957dd833ba602230f26..6438bc8c87e9dde104841014469a3a177538f0d8 100644 (file)
@@ -29,8 +29,10 @@ int map_Mono_Posix_OpenFlags (int x)
                r |= O_APPEND;
        if ((x & Mono_Posix_OpenFlags_O_NONBLOCK) != 0)
                r |= O_NONBLOCK;
+#ifdef O_SYNC
        if ((x & Mono_Posix_OpenFlags_O_SYNC) != 0)
                r |= O_SYNC;
+#endif
        return r;
 }