diff options
author | Xavier Leroy <xavier.leroy@inria.fr> | 2000-03-16 13:35:20 +0000 |
---|---|---|
committer | Xavier Leroy <xavier.leroy@inria.fr> | 2000-03-16 13:35:20 +0000 |
commit | b070d1dce08a924cfdae5b5304318a990ebb73c8 (patch) | |
tree | adbee9f1271b251af595e3a1ac42c545f02d3237 /otherlibs/win32unix/socketaddr.h | |
parent | 3375e52091a4274b9503be74351a4aada59a94db (diff) |
MAJ portage Win32
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2962 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'otherlibs/win32unix/socketaddr.h')
-rw-r--r-- | otherlibs/win32unix/socketaddr.h | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/otherlibs/win32unix/socketaddr.h b/otherlibs/win32unix/socketaddr.h index d210bb204..f244d82fd 100644 --- a/otherlibs/win32unix/socketaddr.h +++ b/otherlibs/win32unix/socketaddr.h @@ -22,10 +22,18 @@ union sock_addr_union { }; extern union sock_addr_union sock_addr; -extern int sock_addr_len; -void get_sockaddr (value); -value alloc_sockaddr (void); -value alloc_inet_addr (unsigned int); +#ifdef HAS_SOCKLEN_T +typedef socklen_t socklen_param_type; +#else +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*/, + socklen_param_type addr_len); +value alloc_inet_addr (uint32 inaddr); #define GET_INET_ADDR(v) (*((uint32 *) (v))) |