mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-10-06 06:00:27 +00:00
patch for compilation problem under Irix
This commit is contained in:
parent
628533940d
commit
077d335584
@ -114,8 +114,8 @@ void EtherInit(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Retrieve local IP address (or at least one of them)
|
// Retrieve local IP address (or at least one of them)
|
||||||
socklen_t sa_len = sizeof(sa);
|
socklen_t sa_length = sizeof(sa);
|
||||||
getsockname(udp_socket, (struct sockaddr *)&sa, &sa_len);
|
getsockname(udp_socket, (struct sockaddr *)&sa, &sa_length);
|
||||||
uint32 udp_ip = sa.sin_addr.s_addr;
|
uint32 udp_ip = sa.sin_addr.s_addr;
|
||||||
if (udp_ip == INADDR_ANY || udp_ip == INADDR_LOOPBACK) {
|
if (udp_ip == INADDR_ANY || udp_ip == INADDR_LOOPBACK) {
|
||||||
char name[256];
|
char name[256];
|
||||||
|
Loading…
Reference in New Issue
Block a user