Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix eio_windows
Browse files Browse the repository at this point in the history
patricoferris committed Nov 20, 2024
1 parent 85ffd3d commit dbe9a44
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib_eio_windows/dune
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
(name eio_windows)
(public_name eio_windows)
(library_flags :standard -cclib -lbcrypt -cclib -lntdll)
(enabled_if (= %{os_type} "Win32"))
; (enabled_if (= %{os_type} "Win32"))
(foreign_stubs
(language c)
(include_dirs ../lib_eio/unix/include)
4 changes: 3 additions & 1 deletion lib_eio_windows/low_level.ml
Original file line number Diff line number Diff line change
@@ -140,7 +140,9 @@ let read_link ?dirfd path =

let chown ?dirfd ~follow:_ ~uid ~gid path =
in_worker_thread @@ fun () ->
Eio_unix.Private.chown ~flags:0 ~uid ~gid dirfd path
match dirfd with
| None -> failwith "Chown is unsupported on Windows"
| Some dirfd -> Eio_unix.Private.chown ~flags:0 ~uid ~gid dirfd path

external eio_readv : Unix.file_descr -> Cstruct.t array -> int = "caml_eio_windows_readv"

0 comments on commit dbe9a44

Please sign in to comment.