Commit a2c3519c authored by Philip Withnall's avatar Philip Withnall

agent: Move utility function outside #ifdef

This fixes compilation when HAVE_GETIFADDRS is not define. Reported on
the mailing list by Curieux Tres <trescurieux@yahoo.fr>.
parent 1de213ea
...@@ -190,11 +190,6 @@ nice_interfaces_is_private_ip (const struct sockaddr *_sa) ...@@ -190,11 +190,6 @@ nice_interfaces_is_private_ip (const struct sockaddr *_sa)
return FALSE; return FALSE;
} }
#ifdef HAVE_GETIFADDRS
static gchar *
sockaddr_to_string (const struct sockaddr *addr);
static GList * static GList *
add_ip_to_list (GList *list, gchar *ip, gboolean append) add_ip_to_list (GList *list, gchar *ip, gboolean append)
{ {
...@@ -212,6 +207,11 @@ add_ip_to_list (GList *list, gchar *ip, gboolean append) ...@@ -212,6 +207,11 @@ add_ip_to_list (GList *list, gchar *ip, gboolean append)
return g_list_prepend (list, ip); return g_list_prepend (list, ip);
} }
#ifdef HAVE_GETIFADDRS
static gchar *
sockaddr_to_string (const struct sockaddr *addr);
GList * GList *
nice_interfaces_get_local_ips (gboolean include_loopback) nice_interfaces_get_local_ips (gboolean include_loopback)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment