This fixes compilation when HAVE_GETIFADDRS is not define. Reported on
the mailing list by Curieux Tres <trescurieux@yahoo.fr>.
return FALSE;
}
-#ifdef HAVE_GETIFADDRS
-
-static gchar *
-sockaddr_to_string (const struct sockaddr *addr);
-
static GList *
add_ip_to_list (GList *list, gchar *ip, gboolean append)
{
return g_list_prepend (list, ip);
}
+#ifdef HAVE_GETIFADDRS
+
+static gchar *
+sockaddr_to_string (const struct sockaddr *addr);
+
GList *
nice_interfaces_get_local_ips (gboolean include_loopback)
{