summaryrefslogtreecommitdiffstats
path: root/otherlibs/win32unix/socketaddr.h
diff options
context:
space:
mode:
Diffstat (limited to 'otherlibs/win32unix/socketaddr.h')
-rw-r--r--otherlibs/win32unix/socketaddr.h16
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)))