summaryrefslogtreecommitdiffstats
path: root/libmpdemux
diff options
context:
space:
mode:
authorfaust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-03-30 20:11:25 +0000
committerfaust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-03-30 20:11:25 +0000
commit316635bb3523ce20615e8fae8d20fcb42dc29dd7 (patch)
treef52ce5fa2e758ce3dd8416f8f72f689ba90b694d /libmpdemux
parent2f0126f6c0a9a7fa56ffe2aa37cc613f8c5ce7ad (diff)
downloadmpv-316635bb3523ce20615e8fae8d20fcb42dc29dd7.tar.bz2
mpv-316635bb3523ce20615e8fae8d20fcb42dc29dd7.tar.xz
MINGW32 port
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9763 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r--libmpdemux/open.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libmpdemux/open.c b/libmpdemux/open.c
index 7268a382b4..808a92b793 100644
--- a/libmpdemux/open.c
+++ b/libmpdemux/open.c
@@ -610,10 +610,10 @@ if(strncmp("dvbin://",filename,8) == 0)
mp_msg(MSGT_OPEN,MSGL_INFO,MSGTR_ReadSTDIN);
f=0; // 0=stdin
} else {
-#ifndef __CYGWIN__
- f=open(filename,O_RDONLY);
-#else
+#if defined(__CYGWIN__) || defined(__MINGW32__)
f=open(filename,O_RDONLY|O_BINARY);
+#else
+ f=open(filename,O_RDONLY);
#endif
if(f<0){ mp_msg(MSGT_OPEN,MSGL_ERR,MSGTR_FileNotFound,filename);return NULL; }
}