Revision 3419

View differences:

libsylph/socket.c
1056 1056
		g_free(res);
1057 1057
	}
1058 1058
}
1059

  
1060
/* MinGW defines gai_strerror() in ws2tcpip.h, but it is not implemented. */
1061
#undef gai_strerror
1062
const gchar *gai_strerror(gint errcode)
1063
{
1064
	static gchar str[32];
1065

  
1066
	g_snprintf(str, sizeof(str), "gai errcode: (%d)", errcode);
1067
	return str;
1068
}
1069 1059
#endif
1070 1060

  
1071 1061
static SockDesc sock_info_connect_by_getaddrinfo(SockInfo *sockinfo)

Also available in: Unified diff