Skip to content

Commit dccfd43

Browse files
committed
Update dune-project dependencies and fix BTF value allocation method in C stubs for newer version of Ocaml
1 parent 949bd99 commit dccfd43

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

dune-project

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
ocaml
1515
dune
1616
menhir
17-
alcotest))
17+
alcotest
18+
str
19+
unix))
1820

1921
(using menhir 2.0)

src/btf_stubs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ static inline struct btf *btf_of_value(value v) {
5757

5858
/* Convert OCaml value to BTF handle */
5959
static inline value value_of_btf(struct btf *btf) {
60-
value v = alloc_custom(&btf_handle_ops, sizeof(struct btf *), 0, 1);
60+
value v = caml_alloc_custom(&btf_handle_ops, sizeof(struct btf *), 0, 1);
6161
*((struct btf **) Data_custom_val(v)) = btf;
6262
return v;
6363
}

0 commit comments

Comments
 (0)