changeset 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 cfb1f4b08ab1
children 0925c898b73c
files src/network.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
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;
 	}