Skip to content

Commit 0da9177

Browse files
committed
Compatibility definition for caml_convert_flag_list
1 parent cd4aadd commit 0da9177

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/unix/lwt_unix.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
#include <caml/socketaddr.h>
1515
#include <string.h>
1616

17+
#if OCAML_VERSION < 50000
18+
#define caml_convert_flag_list(flags, table) \
19+
caml_convert_flag_list((flags), (int *)(table))
20+
#endif
21+
1722
/* The macro to get the file-descriptor from a value. */
1823
#if defined(LWT_ON_WINDOWS)
1924
#define FD_val(value) win_CRT_fd_of_filedescr(value)

0 commit comments

Comments
 (0)