comparison src/network.c @ 10671:c6dedd37ea5c

[gaim-migrate @ 12211] Compile on Win32. gai_strerror() seems to be missing from the mingw link library and EAI_SYSTEM isn't defined. committer: Tailor Script <tailor@pidgin.im>
author Daniel Atallah <daniel.atallah@gmail.com>
date Tue, 08 Mar 2005 02:04:04 +0000
parents 0577bb34622d
children 50224ac8184d
comparison
equal deleted inserted replaced
10670:cfb1f4b08ab1 10671:c6dedd37ea5c
164 hints.ai_flags = AI_PASSIVE; 164 hints.ai_flags = AI_PASSIVE;
165 hints.ai_family = AF_UNSPEC; 165 hints.ai_family = AF_UNSPEC;
166 hints.ai_socktype = SOCK_STREAM; 166 hints.ai_socktype = SOCK_STREAM;
167 errnum = getaddrinfo(NULL /* any IP */, serv, &hints, &res); 167 errnum = getaddrinfo(NULL /* any IP */, serv, &hints, &res);
168 if (errnum != 0) { 168 if (errnum != 0) {
169 #ifndef _WIN32
169 gaim_debug_warning("network", "getaddrinfo: %s\n", gai_strerror(errnum)); 170 gaim_debug_warning("network", "getaddrinfo: %s\n", gai_strerror(errnum));
170 if (errnum == EAI_SYSTEM) 171 if (errnum == EAI_SYSTEM)
171 gaim_debug_warning("network", "getaddrinfo: system error: %s\n", strerror(errno)); 172 gaim_debug_warning("network", "getaddrinfo: system error: %s\n", strerror(errno));
173 #else
174 gaim_debug_warning("network", "getaddrinfo: Error Code = %d\n", errnum);
175 #endif
172 return -1; 176 return -1;
173 } 177 }
174 178
175 /* 179 /*
176 * Go through the list of addresses and attempt to listen on 180 * Go through the list of addresses and attempt to listen on