changeset 11221:5ed33bb06a84

[gaim-migrate @ 13353] These changes must have been unintentionally reverted committer: Tailor Script <tailor@pidgin.im>
author Daniel Atallah <daniel.atallah@gmail.com>
date Tue, 09 Aug 2005 12:12:14 +0000
parents dc6fabb3b645
children 480183b6a191
files src/network.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/network.c	Tue Aug 09 08:14:38 2005 +0000
+++ b/src/network.c	Tue Aug 09 12:12:14 2005 +0000
@@ -177,9 +177,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;
 	}
 
@@ -294,6 +298,8 @@
 void
 gaim_network_init(void)
 {
+	gaim_debug_register_category("network");
+
 	gaim_prefs_add_none  ("/core/network");
 	gaim_prefs_add_bool  ("/core/network/auto_ip", TRUE);
 	gaim_prefs_add_string("/core/network/public_ip", "");