Mercurial > pidgin
comparison src/network.c @ 12917:a85c8c11bfab
[gaim-migrate @ 15270]
Fix compile when you don't HAVE_GETADDRINFO. I swear that I committed this yesterday, but apparently not.
committer: Tailor Script <tailor@pidgin.im>
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Tue, 17 Jan 2006 18:36:29 +0000 |
parents | 8e3b85fe4a55 |
children | d0ae6489a0fb |
comparison
equal
deleted
inserted
replaced
12916:8401da9b976f | 12917:a85c8c11bfab |
---|---|
215 static gboolean | 215 static gboolean |
216 gaim_network_do_listen(unsigned short port, int socket_type, GaimNetworkListenCallback cb, gpointer cb_data) | 216 gaim_network_do_listen(unsigned short port, int socket_type, GaimNetworkListenCallback cb, gpointer cb_data) |
217 { | 217 { |
218 int listenfd = -1; | 218 int listenfd = -1; |
219 const int on = 1; | 219 const int on = 1; |
220 ListenUPnPData *ld; | |
220 #if HAVE_GETADDRINFO | 221 #if HAVE_GETADDRINFO |
221 int errnum; | 222 int errnum; |
222 struct addrinfo hints, *res, *next; | 223 struct addrinfo hints, *res, *next; |
223 char serv[6]; | 224 char serv[6]; |
224 ListenUPnPData *ld; | |
225 | 225 |
226 /* | 226 /* |
227 * Get a list of addresses on this machine. | 227 * Get a list of addresses on this machine. |
228 */ | 228 */ |
229 snprintf(serv, sizeof(serv), "%hu", port); | 229 snprintf(serv, sizeof(serv), "%hu", port); |