summaryrefslogtreecommitdiffstats
path: root/otherlibs/unix/socketaddr.h
diff options
context:
space:
mode:
Diffstat (limited to 'otherlibs/unix/socketaddr.h')
-rw-r--r--otherlibs/unix/socketaddr.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/otherlibs/unix/socketaddr.h b/otherlibs/unix/socketaddr.h
index 52245ed92..65c1a4782 100644
--- a/otherlibs/unix/socketaddr.h
+++ b/otherlibs/unix/socketaddr.h
@@ -18,13 +18,14 @@
#include <netinet/in.h>
#include <arpa/inet.h>
-union {
+union sock_addr_union {
struct sockaddr s_gen;
struct sockaddr_un s_unix;
struct sockaddr_in s_inet;
-} sock_addr;
+};
-int sock_addr_len;
+extern union sock_addr_union sock_addr;
+extern int sock_addr_len;
void get_sockaddr P((value));
value alloc_sockaddr P((void));