mirror of
https://github.com/irssi/irssi.git
synced 2026-08-08 19:30:15 +02:00
restore ip4_any
This commit is contained in:
parent
3c65684643
commit
51322d6af1
1 changed files with 8 additions and 0 deletions
|
|
@ -81,6 +81,14 @@ int i_io_channel_read_block(GIOChannel *channel, void *data, int len)
|
|||
return received < len ? -1 : 0;
|
||||
}
|
||||
|
||||
IPADDR ip4_any = { AF_INET,
|
||||
#if defined(IN6ADDR_ANY_INIT)
|
||||
IN6ADDR_ANY_INIT
|
||||
#else
|
||||
{ INADDR_ANY }
|
||||
#endif
|
||||
};
|
||||
|
||||
static void sin_set_ip(union sockaddr_union *so, const IPADDR *ip)
|
||||
{
|
||||
if (ip == NULL) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue