diff 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
line wrap: on
line diff
--- a/src/network.c	Tue Mar 08 01:24:10 2005 +0000
+++ b/src/network.c	Tue Mar 08 02:04:04 2005 +0000
@@ -166,9 +166,13 @@
 	hints.ai_socktype = SOCK_STREAM;
 	errnum = getaddrinfo(NULL /* any IP */, serv, &hints, &res);
 	if (errnum != 0) {
+#ifndef _WIN32
 		gaim_debug_warning("network", "getaddrinfo: %s\n", gai_strerror(errnum));
 		if (errnum == EAI_SYSTEM)
 			gaim_debug_warning("network", "getaddrinfo: system error: %s\n", strerror(errno));
+#else
+		gaim_debug_warning("network", "getaddrinfo: Error Code = %d\n", errnum);
+#endif
 		return -1;
 	}