summaryrefslogtreecommitdiffstats
path: root/otherlibs/win32unix/channels.c
diff options
context:
space:
mode:
Diffstat (limited to 'otherlibs/win32unix/channels.c')
-rw-r--r--otherlibs/win32unix/channels.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/otherlibs/win32unix/channels.c b/otherlibs/win32unix/channels.c
index cd2878c76..a91149ab4 100644
--- a/otherlibs/win32unix/channels.c
+++ b/otherlibs/win32unix/channels.c
@@ -16,14 +16,9 @@
#include "unixsupport.h"
#include <fcntl.h>
-static int open_descr_flags[3] = {
- O_BINARY, O_TEXT, O_APPEND
-};
-
-value win_fd_handle(value handle, value flags) /* ML */
+value win_fd_handle(value handle) /* ML */
{
- int fd = _open_osfhandle((long) Handle_val(handle),
- convert_flag_list(flags, open_descr_flags));
+ int fd = _open_osfhandle((long) Handle_val(handle), O_BINARY);
if (fd == -1) uerror("channel_of_descr", Nothing);
return Val_int(fd);
}