Skip to content

Commit

Permalink
Compatibility definition for caml_convert_flag_list
Browse files Browse the repository at this point in the history
  • Loading branch information
MisterDA committed Jun 20, 2024
1 parent cd4aadd commit 0da9177
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/unix/lwt_unix.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
#include <caml/socketaddr.h>
#include <string.h>

#if OCAML_VERSION < 50000
#define caml_convert_flag_list(flags, table) \
caml_convert_flag_list((flags), (int *)(table))
#endif

/* The macro to get the file-descriptor from a value. */
#if defined(LWT_ON_WINDOWS)
#define FD_val(value) win_CRT_fd_of_filedescr(value)
Expand Down

0 comments on commit 0da9177

Please sign in to comment.