X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=support%2Fmap.c;h=6438bc8c87e9dde104841014469a3a177538f0d8;hb=50beb484c091b7eb9fdd4cba436757c12f316b8d;hp=7016ea3509a350a1c2fbf957dd833ba602230f26;hpb=66a87fc4bfc2441f37840c2b627ddfdd17c221e9;p=mono.git diff --git a/support/map.c b/support/map.c index 7016ea3509a..6438bc8c87e 100644 --- a/support/map.c +++ b/support/map.c @@ -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; }