changeset 8712:9e32c8ee5862

fixed stream errors on some cygwin installations
author faust3
date Thu, 02 Jan 2003 10:53:22 +0000
parents 906f7a2dc085
children d9639f835ecf
files libmpdemux/open.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/open.c	Thu Jan 02 03:00:44 2003 +0000
+++ b/libmpdemux/open.c	Thu Jan 02 10:53:22 2003 +0000
@@ -503,7 +503,11 @@
 	mp_msg(MSGT_OPEN,MSGL_INFO,MSGTR_ReadSTDIN);
 	f=0; // 0=stdin
     } else {
+#ifndef __CYGWIN__
        f=open(filename,O_RDONLY);
+#else
+       f=open(filename,O_RDONLY|O_BINARY);
+#endif
        if(f<0){ mp_msg(MSGT_OPEN,MSGL_ERR,MSGTR_FileNotFound,filename);return NULL; }
     }