Was wrong condition
[mono.git] / support / map.c
index f0e84a760488803127dc033b9b74a51be1bd507e..6438bc8c87e9dde104841014469a3a177538f0d8 100644 (file)
@@ -1,4 +1,4 @@
-/* This file was automatically generated by make-map from ../lib/Mono.Posix.dll */
+/* This file was automatically generated by make-map from ../../mcs/class/lib/Mono.Posix.dll */
 
 #define _GNU_SOURCE
 #include <sys/types.h>
@@ -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;
 }