# HG changeset patch # User Paul Aurich # Date 1266288970 0 # Node ID ce3f4bd8939b174fe840453aa04eb3c15e569fd7 # Parent 2c955a6f1fa877a86b27101b4a0a278a30b23157 Oops, probably better if we have both getifaddrs() and inet_ntop() diff -r 2c955a6f1fa8 -r ce3f4bd8939b libpurple/network.c --- 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 *