mirror of
https://github.com/irssi/irssi.git
synced 2026-08-19 16:42:30 +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;
|
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)
|
static void sin_set_ip(union sockaddr_union *so, const IPADDR *ip)
|
||||||
{
|
{
|
||||||
if (ip == NULL) {
|
if (ip == NULL) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue