From 9f1a9ce060b0ea26bcbaf7ddef3e64f7fbb33b75 Mon Sep 17 00:00:00 2001 From: Xavier Leroy Date: Tue, 27 Apr 2004 13:49:50 +0000 Subject: MAJ portage Windows suite a IPv6 git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6262 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02 --- otherlibs/win32unix/socketaddr.h | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'otherlibs/win32unix/socketaddr.h') diff --git a/otherlibs/win32unix/socketaddr.h b/otherlibs/win32unix/socketaddr.h index 2b7884f30..79c3e6365 100644 --- a/otherlibs/win32unix/socketaddr.h +++ b/otherlibs/win32unix/socketaddr.h @@ -28,11 +28,10 @@ typedef socklen_t socklen_param_type; typedef int socklen_param_type; #endif -void get_sockaddr (value mladdr, - union sock_addr_union * addr /*out*/, - socklen_param_type * addr_len /*out*/); -value alloc_sockaddr (union sock_addr_union * addr /*in*/, +extern void get_sockaddr (value mladdr, + union sock_addr_union * addr /*out*/, + socklen_param_type * addr_len /*out*/); +CAMLprim value alloc_sockaddr (union sock_addr_union * addr /*in*/, socklen_param_type addr_len); -value alloc_inet_addr (uint32 inaddr); - -#define GET_INET_ADDR(v) (*((uint32 *) (v))) +CAMLprim value alloc_inet_addr (struct in_addr * inaddr); +#define GET_INET_ADDR(v) (*((struct in_addr *) (v))) -- cgit v1.2.3-70-g09d2