summaryrefslogtreecommitdiffstats
path: root/otherlibs/win32unix/channels.c
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@inria.fr>1997-11-17 17:15:28 +0000
committerXavier Leroy <xavier.leroy@inria.fr>1997-11-17 17:15:28 +0000
commit194af334a2295b52ab0db12f3c6374448e9c5918 (patch)
tree6374a6e75edb5084e63199d7653b95e583e36384 /otherlibs/win32unix/channels.c
parenta50080255f3f1e2b247b9d349e1547aaecf41c7f (diff)
Erreur dans l'appel de convert_flag_list
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1778 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'otherlibs/win32unix/channels.c')
-rw-r--r--otherlibs/win32unix/channels.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/otherlibs/win32unix/channels.c b/otherlibs/win32unix/channels.c
index 196181963..13a2bf00b 100644
--- a/otherlibs/win32unix/channels.c
+++ b/otherlibs/win32unix/channels.c
@@ -12,6 +12,7 @@
/* $Id$ */
#include <mlvalues.h>
+#include <alloc.h>
#include "unixsupport.h"
#include <fcntl.h>
@@ -22,7 +23,7 @@ static int open_descr_flags[10] = {
value win_fd_handle(value handle, value flags) /* ML */
{
int fd = _open_osfhandle((long) Handle_val(handle),
- convert_flag_list(open_descr_flags, flags));
+ convert_flag_list(flags, open_descr_flags));
if (fd == -1) uerror("channel_of_descr", Nothing);
return Val_int(fd);
}