diff options
Diffstat (limited to 'otherlibs/unix/socketaddr.h')
-rw-r--r-- | otherlibs/unix/socketaddr.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/otherlibs/unix/socketaddr.h b/otherlibs/unix/socketaddr.h index 0cabfcc6d..79bc80fa7 100644 --- a/otherlibs/unix/socketaddr.h +++ b/otherlibs/unix/socketaddr.h @@ -38,12 +38,12 @@ typedef int socklen_param_type; 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); -CAMLprim value alloc_inet_addr (struct in_addr * inaddr); +CAMLexport value alloc_sockaddr (union sock_addr_union * addr /*in*/, + socklen_param_type addr_len, int close_on_error); +CAMLexport value alloc_inet_addr (struct in_addr * inaddr); #define GET_INET_ADDR(v) (*((struct in_addr *) (v))) #ifdef HAS_IPV6 -CAMLprim value alloc_inet6_addr (struct in6_addr * inaddr); +CAMLexport value alloc_inet6_addr (struct in6_addr * inaddr); #define GET_INET6_ADDR(v) (*((struct in6_addr *) (v))) #endif |