summaryrefslogtreecommitdiffstats
path: root/otherlibs/win32unix/open.c
diff options
context:
space:
mode:
Diffstat (limited to 'otherlibs/win32unix/open.c')
-rw-r--r--otherlibs/win32unix/open.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/otherlibs/win32unix/open.c b/otherlibs/win32unix/open.c
index 45c58f2f4..08811182f 100644
--- a/otherlibs/win32unix/open.c
+++ b/otherlibs/win32unix/open.c
@@ -25,7 +25,7 @@ static int open_create_flags[8] = {
0, 0, 0, 0, 0, O_CREAT, O_TRUNC, O_EXCL
};
-value unix_open(value path, value flags, value perm) /* ML */
+CAMLprim value unix_open(value path, value flags, value perm)
{
int fileaccess, createflags, fileattrib, filecreate;
SECURITY_ATTRIBUTES attr;
@@ -58,7 +58,7 @@ value unix_open(value path, value flags, value perm) /* ML */
FILE_SHARE_READ | FILE_SHARE_WRITE, &attr,
filecreate, fileattrib, NULL);
if (h == INVALID_HANDLE_VALUE) {
- _dosmaperr(GetLastError());
+ win32_maperr(GetLastError());
uerror("open", path);
}
return win_alloc_handle(h);