diff options
author | Xavier Leroy <xavier.leroy@inria.fr> | 2004-04-27 13:49:50 +0000 |
---|---|---|
committer | Xavier Leroy <xavier.leroy@inria.fr> | 2004-04-27 13:49:50 +0000 |
commit | 9f1a9ce060b0ea26bcbaf7ddef3e64f7fbb33b75 (patch) | |
tree | c8a5bd0de134771dbbb5b3f670a81f676eabca5a /otherlibs/win32unix/socketaddr.h | |
parent | 51c870d62ea4c058dc5dde570228005aa2ecc2cd (diff) |
MAJ portage Windows suite a IPv6
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6262 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'otherlibs/win32unix/socketaddr.h')
-rw-r--r-- | otherlibs/win32unix/socketaddr.h | 13 |
1 files changed, 6 insertions, 7 deletions
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))) |