Skip to content

Commit

Permalink
flambda-backend: Fix a couple of build errors (ocaml-flambda#2103)
Browse files Browse the repository at this point in the history
  • Loading branch information
mshinwell authored Nov 29, 2023
1 parent 127ef00 commit 5136440
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion runtime/gc_ctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ CAMLprim value caml_gc_compaction(value v)
value exn = gc_major_exn(1);
++ Caml_state->stat_forced_major_collections;
CAML_EV_END(EV_EXPLICIT_GC_COMPACT);
return caml_raise_if_exception(exn);
return caml_raise_async_if_exception(exn, "");
}

CAMLprim value caml_gc_stat(value v)
Expand Down
4 changes: 2 additions & 2 deletions runtime/sync_posix.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ Caml_inline int sync_mutex_unlock(sync_mutex m)

/* If we're using glibc, use a custom condition variable implementation to
avoid this bug: https://sourceware.org/bugzilla/show_bug.cgi?id=25847
For now we only have this on linux because it directly uses the linux futex
syscalls. */
#if defined(__linux__) && defined(__GNU_LIBRARY__) && defined(__GLIBC__) && defined(__GLIBC_MINOR__)
Expand Down Expand Up @@ -206,7 +206,7 @@ Caml_inline int sync_condvar_wait(sync_condvar c, sync_mutex m)

/* Reporting errors */

static void sync_check_error(int retcode, char * msg)
Caml_inline void sync_check_error(int retcode, char * msg)
{
char * err;
char buf[1024];
Expand Down

0 comments on commit 5136440

Please sign in to comment.