diff options
author | Philip Withnall <philip.withnall@collabora.co.uk> | 2015-04-24 10:18:32 +0100 |
---|---|---|
committer | Philip Withnall <philip.withnall@collabora.co.uk> | 2015-04-24 10:18:32 +0100 |
commit | a2c3519c851a7311976e1e99c7619cf6eae90081 (patch) | |
tree | fc359a15f97ed729be2b324e8195b82d092f4813 | |
parent | 1de213ea70018f58f1718818617b0362c09a5f93 (diff) | |
download | libnice-a2c3519c851a7311976e1e99c7619cf6eae90081.tar.gz |
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>.
-rw-r--r-- | agent/interfaces.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/agent/interfaces.c b/agent/interfaces.c index 0ce16e4..15bfa3c 100644 --- a/agent/interfaces.c +++ b/agent/interfaces.c @@ -190,11 +190,6 @@ nice_interfaces_is_private_ip (const struct sockaddr *_sa) 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) { @@ -212,6 +207,11 @@ 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) { |