Mercurial > pidgin
changeset 29374:ce3f4bd8939b
Oops, probably better if we have both getifaddrs() and inet_ntop()
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Tue, 16 Feb 2010 02:56:10 +0000 |
parents | 2c955a6f1fa8 |
children | f3745c3198b2 |
files | libpurple/network.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/network.c Tue Feb 16 02:34:35 2010 +0000 +++ b/libpurple/network.c Tue Feb 16 02:56:10 2010 +0000 @@ -206,7 +206,7 @@ GList * purple_network_get_all_local_system_ips(void) { -#ifdef HAVE_GETIFADDRS +#if defined(HAVE_GETIFADDRS) && defined(HAVE_INET_NTOP) GList *result = NULL; struct ifaddrs *start, *ifa; int ret; @@ -245,7 +245,7 @@ freeifaddrs(start); return g_list_reverse(result); -#else /* HAVE_GETIFADDRS */ +#else /* HAVE_GETIFADDRS && HAVE_INET_NTOP */ GList *result = NULL; int source = socket(PF_INET,SOCK_STREAM, 0); char buffer[1024]; @@ -279,7 +279,7 @@ } return result; -#endif /* HAVE_GETIFADDRS */ +#endif /* HAVE_GETIFADDRS && HAVE_INET_NTOP */ } const char *