Mercurial > pidgin
comparison src/proxy.c @ 10264:36b7335d3452
[gaim-migrate @ 11410]
On August 30th Laurent Rineau sent a patch to gaim-devel that makes
this change. It should allow proxy.c to compile on systems
where HAVE_GETADDRINFO is undefined.
I haven't tested it, but it looked ok to me. I don't think
"hostname" is a valid variable there.
committer: Tailor Script <tailor@pidgin.im>
| author | Mark Doliner <mark@kingant.net> |
|---|---|
| date | Fri, 26 Nov 2004 02:50:14 +0000 |
| parents | d0558652e0c4 |
| children | 9bfcb5eb12bd |
comparison
equal
deleted
inserted
replaced
| 10263:1668fcab5968 | 10264:36b7335d3452 |
|---|---|
| 499 res = res->ai_next; | 499 res = res->ai_next; |
| 500 } | 500 } |
| 501 freeaddrinfo(tmp); | 501 freeaddrinfo(tmp); |
| 502 write(child_out, &zero, sizeof(zero)); | 502 write(child_out, &zero, sizeof(zero)); |
| 503 #else | 503 #else |
| 504 if (!inet_aton(hostname, &sin.sin_addr)) { | 504 if (!inet_aton(dns_params->hostname, &sin.sin_addr)) { |
| 505 struct hostent *hp; | 505 struct hostent *hp; |
| 506 if (!(hp = gethostbyname(dns_params->hostname))) { | 506 if (!(hp = gethostbyname(dns_params->hostname))) { |
| 507 write(child_out, &h_errno, sizeof(int)); | 507 write(child_out, &h_errno, sizeof(int)); |
| 508 close(child_out); | 508 close(child_out); |
| 509 if (show_debug) | 509 if (show_debug) |
