]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/blobdiff - libavformat/file.c
os2 support patch by ("Slavik Gnatenko" <miracle9 at newmail dot ru>)
[frescor/ffmpeg.git] / libavformat / file.c
index 7390962864fa53f518079b598c5c7a4e5d93f057..a84823a378aaec5a85a41992e571b1a4b39ea42f 100644 (file)
@@ -42,7 +42,7 @@ static int file_open(URLContext *h, const char *filename, int flags)
     } else {
         access = O_RDONLY;
     }
-#ifdef CONFIG_WIN32
+#if defined(CONFIG_WIN32) || defined(CONFIG_OS2)
     access |= O_BINARY;
 #endif
     fd = open(filename, access, 0666);