Skip to content

Commit

Permalink
sockopt: fix windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
avsm committed Jul 22, 2023
1 parent fb941d6 commit 65fa53b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib_eio_windows/flow.ml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,12 @@ let of_fd fd = object (_ : <Eio_unix.Net.stream_socket; Eio.File.rw>)
method probe : type a. a Eio.Generic.ty -> a option = function
| Eio_unix.Resource.FD -> Some fd
| _ -> None

method getsockopt : type a. a Eio.Net.Sockopt.t -> a = fun opt ->
Eio_unix.Net.Sockopt.get fd opt

method setsockopt : type a. a Eio.Net.Sockopt.t -> a -> unit = fun opt v ->
Eio_unix.Net.Sockopt.set fd opt v
end

let secure_random = object
Expand Down

0 comments on commit 65fa53b

Please sign in to comment.