Skip to content

Commit

Permalink
Fix eio_windows
Browse files Browse the repository at this point in the history
  • Loading branch information
patricoferris committed Nov 20, 2024
1 parent 85ffd3d commit dbe9a44
Show file tree
Hide file tree
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
Expand Up @@ -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)
Expand Down
4 changes: 3 additions & 1 deletion lib_eio_windows/low_level.ml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit dbe9a44

Please sign in to comment.