]> git.sesse.net Git - vlc/blobdiff - modules/access_output/file.c
OS/2 uses the same file operations as Win32
[vlc] / modules / access_output / file.c
index f104f59b0dd247200c30453a5f03f0351f108f3b..88fb86bb8f1eb04b6e2a56cfab77372d5df388ee 100644 (file)
@@ -45,6 +45,8 @@
 #if defined( WIN32 ) && !defined( UNDER_CE )
 #   include <io.h>
 #   define lseek _lseeki64
+#elif defined( __OS2__ )
+#   include <io.h>
 #else
 #   include <unistd.h>
 #endif
@@ -144,7 +146,7 @@ static int Open( vlc_object_t *p_this )
     else
     if( !strcmp( p_access->psz_path, "-" ) )
     {
-#ifdef WIN32
+#if defined( WIN32 ) || defined( __OS2__ )
         setmode (fileno (stdout), O_BINARY);
 #endif
         fd = vlc_dup (fileno (stdout));