Skip to content

Commit ef733e3

Browse files
committed
ox: keep compat with oxcaml/oxcaml#main
Signed-off-by: Ali Caglayan <alizter@gmail.com>
1 parent b143208 commit ef733e3

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

flake.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

otherlibs/stdune/src/fpath.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ let win32_unlink fn =
128128
retry_loop 30)
129129
;;
130130

131-
let unlink_exn = if Stdlib.Sys.win32 then win32_unlink else Unix.unlink
131+
let unlink_exn = if Stdlib.Sys.win32 then win32_unlink else fun t -> Unix.unlink t
132132

133133
type unlink_status =
134134
| Success

src/csexp_rpc/csexp_rpc.ml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,9 @@ module Session = struct
239239
let write t b =
240240
match Platform.OS.value with
241241
| Linux -> send t b
242-
| _ -> Unix.single_write t b
242+
| _ ->
243+
fun pos len ->
244+
Unix.single_write t b pos len
243245
;;
244246

245247
let rec csexp_write_loop fd out_buf token =

src/dune_stats/dune_stats.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ let global () = !global
143143
let create ~extended_build_job_info dst =
144144
let print =
145145
match dst with
146-
| Out out -> Stdlib.output_string out
146+
| Out out -> fun str -> Stdlib.output_string out str
147147
| Custom c -> c.write
148148
in
149149
let close =

0 commit comments

Comments
 (0)