We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 407f1c1 + 2bb4afb commit 7cfde7fCopy full SHA for 7cfde7f
cstruct-unix.opam
@@ -18,7 +18,6 @@ depends: [
18
"ocaml" {>= "4.06.0"}
19
"dune" {>= "2.0.0"}
20
"base-unix"
21
- "mmap" {>= "1.2.0"}
22
"cstruct" {=version}
23
]
24
synopsis: "Access C-like structures directly from OCaml"
unix/dune
@@ -2,4 +2,4 @@
2
(name cstruct_unix)
3
(wrapped false)
4
(public_name cstruct-unix)
5
- (libraries cstruct mmap unix))
+ (libraries cstruct unix))
unix/unix_cstruct.ml
@@ -15,5 +15,5 @@
15
*)
16
17
let of_fd fd =
- let buffer = Bigarray.(array1_of_genarray (Mmap.V1.map_file fd char c_layout false [|-1|])) in
+ let buffer = Bigarray.(array1_of_genarray (Unix.map_file fd char c_layout false [|-1|])) in
Cstruct.of_bigarray buffer
0 commit comments