Skip to content

Commit

Permalink
fix(macos): build
Browse files Browse the repository at this point in the history
  • Loading branch information
qzhuyan committed Oct 30, 2024
1 parent fb3ed0a commit 4b44430
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions c_src/quicer_nif.c
Original file line number Diff line number Diff line change
Expand Up @@ -1696,6 +1696,7 @@ make_event(ErlNifEnv *env,
prop); // 4th element, event props :: any()) //
}

#if defined(__linux__)
ERL_NIF_TERM
do_malloc_trim(__unused_parm__ ErlNifEnv *env,
__unused_parm__ int argc,
Expand All @@ -1715,6 +1716,7 @@ do_malloc_stats(__unused_parm__ ErlNifEnv *env,
malloc_stats();
return ATOM_OK;
}
#endif

static ErlNifFunc nif_funcs[] = {
/* | name | arity| funptr | flags|
Expand Down

0 comments on commit 4b44430

Please sign in to comment.