@@ -51,8 +51,10 @@ static value convert_addrinfo(struct addrinfo *a)
5151 vcanonname =
5252 caml_copy_string (a -> ai_canonname == NULL ? "" : a -> ai_canonname );
5353 vres = caml_alloc_small (5 , 0 );
54- Field (vres , 0 ) = cst_to_constr (a -> ai_family , socket_domain_table , 3 , 0 );
55- Field (vres , 1 ) = cst_to_constr (a -> ai_socktype , socket_type_table , 4 , 0 );
54+ Field (vres , 0 ) =
55+ cst_to_constr (a -> ai_family , caml_unix_socket_domain_table , 3 , 0 );
56+ Field (vres , 1 ) =
57+ cst_to_constr (a -> ai_socktype , caml_unix_socket_type_table , 4 , 0 );
5658 Field (vres , 2 ) = Val_int (a -> ai_protocol );
5759 Field (vres , 3 ) = vaddr ;
5860 Field (vres , 4 ) = vcanonname ;
@@ -97,11 +99,11 @@ CAMLprim value lwt_unix_getaddrinfo_job(value node, value service, value hints)
9799 if (Is_block (v )) switch (Tag_val (v )) {
98100 case 0 : /* AI_FAMILY of socket_domain */
99101 job -> hints .ai_family =
100- socket_domain_table [Int_val (Field (v , 0 ))];
102+ caml_unix_socket_domain_table [Int_val (Field (v , 0 ))];
101103 break ;
102104 case 1 : /* AI_SOCKTYPE of socket_type */
103105 job -> hints .ai_socktype =
104- socket_type_table [Int_val (Field (v , 0 ))];
106+ caml_unix_socket_type_table [Int_val (Field (v , 0 ))];
105107 break ;
106108 case 2 : /* AI_PROTOCOL of int */
107109 job -> hints .ai_protocol = Int_val (Field (v , 0 ));
0 commit comments