summaryrefslogtreecommitdiff
path: root/src/core/network.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/network.c')
-rw-r--r--src/core/network.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/network.c b/src/core/network.c
index 7e55d472..3659ab36 100644
--- a/src/core/network.c
+++ b/src/core/network.c
@@ -60,7 +60,11 @@ GIOChannel *g_io_channel_new(int handle)
IPADDR ip4_any = {
AF_INET,
- { { { INADDR_ANY } } }
+#if defined(HAVE_IPV6) && defined(IN6ADDR_ANY_INIT)
+ IN6ADDR_ANY_INIT
+#else
+ { INADDR_ANY }
+#endif
};
int net_ip_compare(IPADDR *ip1, IPADDR *ip2)