Skip to content

Commit

Permalink
This fixes build of the project on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
abryantsev committed Jun 6, 2020
1 parent 96b9837 commit a18fd2b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions system/BConnection_win.c
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,7 @@ int BConnection_GetLocalAddress (BConnection *o, BAddr *local_addr)
{
DebugObject_Access(&o->d_obj);

struct BDatagram_sys_addr sysaddr;
struct sys_addr sysaddr;
socklen_t addr_size = sizeof(sysaddr.addr.generic);
if (getsockname(o->sock, &sysaddr.addr.generic, &addr_size) != 0) {
BLog(BLOG_ERROR, "BConnection_GetLocalAddress: getsockname failed");
Expand All @@ -809,7 +809,7 @@ int BConnection_GetLocalAddress (BConnection *o, BAddr *local_addr)

if (addr.type == BADDR_TYPE_NONE) {
BLog(BLOG_ERROR, "BConnection_GetLocalAddress: Unsupported address family "
"from getsockname: %d", int(sysaddr.addr.generic.sa_family));
"from getsockname: %d", sysaddr.addr.generic.sa_family);
return 0;
}

Expand Down
2 changes: 1 addition & 1 deletion system/BDatagram_win.c
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ int BDatagram_GetLocalAddr (BDatagram *o, BAddr *local_addr)

if (addr.type == BADDR_TYPE_NONE) {
BLog(BLOG_ERROR, "BDatagram_GetLocalAddr: Unsupported address family "
"from getsockname: %d", int(sysaddr.addr.generic.sa_family));
"from getsockname: %d", sysaddr.addr.generic.sa_family);
return 0;
}

Expand Down

0 comments on commit a18fd2b

Please sign in to comment.