File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 2
2
(name eio_windows)
3
3
(public_name eio_windows)
4
4
(library_flags :standard -cclib -lbcrypt -cclib -lntdll)
5
- (enabled_if (= %{os_type} "Win32"))
5
+ ; (enabled_if (= %{os_type} "Win32"))
6
6
(foreign_stubs
7
7
(language c)
8
8
(include_dirs ../lib_eio/unix/include)
Original file line number Diff line number Diff line change @@ -140,7 +140,9 @@ let read_link ?dirfd path =
140
140
141
141
let chown ?dirfd ~follow :_ ~uid ~gid path =
142
142
in_worker_thread @@ fun () ->
143
- Eio_unix.Private. chown ~flags: 0 ~uid ~gid dirfd path
143
+ match dirfd with
144
+ | None -> failwith " Chown is unsupported on Windows"
145
+ | Some dirfd -> Eio_unix.Private. chown ~flags: 0 ~uid ~gid dirfd path
144
146
145
147
external eio_readv : Unix .file_descr -> Cstruct .t array -> int = " caml_eio_windows_readv"
146
148
You can’t perform that action at this time.
0 commit comments