We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85ffd3d commit dbe9a44Copy full SHA for dbe9a44
2 files changed
lib_eio_windows/dune
@@ -2,7 +2,7 @@
2
(name eio_windows)
3
(public_name eio_windows)
4
(library_flags :standard -cclib -lbcrypt -cclib -lntdll)
5
- (enabled_if (= %{os_type} "Win32"))
+; (enabled_if (= %{os_type} "Win32"))
6
(foreign_stubs
7
(language c)
8
(include_dirs ../lib_eio/unix/include)
lib_eio_windows/low_level.ml
@@ -140,7 +140,9 @@ let read_link ?dirfd path =
140
141
let chown ?dirfd ~follow:_ ~uid ~gid path =
142
in_worker_thread @@ fun () ->
143
- Eio_unix.Private.chown ~flags:0 ~uid ~gid dirfd path
+ match dirfd with
144
+ | None -> failwith "Chown is unsupported on Windows"
145
+ | Some dirfd -> Eio_unix.Private.chown ~flags:0 ~uid ~gid dirfd path
146
147
external eio_readv : Unix.file_descr -> Cstruct.t array -> int = "caml_eio_windows_readv"
148
0 commit comments