Skip to content

Commit 16f0656

Browse files
authored
Merge pull request #9 from JaviMerino/fix_build_ocaml_4
fd_send_recv_stubs: fix build with ocaml earlier than 5
2 parents 1c47d34 + 6fe7183 commit 16f0656

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/fd_send_recv_stubs.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@
3434
#include <caml/callback.h>
3535
#include <caml/unixsupport.h>
3636

37+
#include <caml/version.h>
38+
#if OCAML_VERSION_MAJOR < 5
39+
#define caml_uerror uerror
40+
#endif
41+
3742
static int msg_flag_table[] = {
3843
MSG_OOB, MSG_DONTROUTE, MSG_PEEK
3944
};

0 commit comments

Comments
 (0)