gsocket: Fix #ifdef for defining g_socket_get_adapter_ipv4_addr()

It was failing compilation on Hurd due to being defined but not used.

https://gitlab.gnome.org/GNOME/glib/-/jobs/4380104

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
This commit is contained in:
Philip Withnall 2024-10-08 13:13:08 +01:00
parent bb0d3d2c1c
commit 0c84510c82
No known key found for this signature in database
GPG Key ID: DCDF5885B1F3ED73

View File

@ -2402,7 +2402,7 @@ g_socket_w32_get_adapter_ipv4_addr (const gchar *name_or_ip)
return ip_result;
}
#elif defined(HAVE_SIOCGIFADDR)
#elif (defined(HAVE_SIOCGIFADDR) && (!(defined(HAVE_IP_MREQN) && !defined(__APPLE__)) || defined(IP_ADD_SOURCE_MEMBERSHIP)))
static gulong
g_socket_get_adapter_ipv4_addr (GSocket *socket,
const char *iface,