comparison src/sysdep.c @ 724:76d5a3dd827a

[xemacs-hg @ 2002-01-05 07:33:11 by stephent] Pre-21.5.4 commit of stuff on notebook -- updated CHANGES-beta -- fix some slow startups - default with_ipv6_cname=no -- Stephen Turnbull -- Cygwin nox-xpm detection -- Charles Wilson -- eliminate bogus check for Athena widgets -- Alexey Mahotkin
author stephent
date Sat, 05 Jan 2002 07:33:24 +0000
parents fdefd0186b75
children 943eaba38521
comparison
equal deleted inserted replaced
723:a65ddffa00a5 724:76d5a3dd827a
2371 # else /* !(HAVE_GETADDRINFO && HAVE_GETNAMEINFO) */ 2371 # else /* !(HAVE_GETADDRINFO && HAVE_GETNAMEINFO) */
2372 struct addrinfo hints, *res; 2372 struct addrinfo hints, *res;
2373 2373
2374 xzero (hints); 2374 xzero (hints);
2375 hints.ai_flags = AI_CANONNAME; 2375 hints.ai_flags = AI_CANONNAME;
2376 #ifdef IPV6_CANONICALIZE
2376 hints.ai_family = AF_UNSPEC; 2377 hints.ai_family = AF_UNSPEC;
2378 #else
2379 hints.ai_family = PF_INET;
2380 #endif
2377 hints.ai_socktype = SOCK_STREAM; 2381 hints.ai_socktype = SOCK_STREAM;
2378 hints.ai_protocol = 0; 2382 hints.ai_protocol = 0;
2379 if (!getaddrinfo (hostname, NULL, &hints, &res)) 2383 if (!getaddrinfo (hostname, NULL, &hints, &res))
2380 { 2384 {
2381 hostname = (char *) alloca (strlen (res->ai_canonname) + 1); 2385 hostname = (char *) alloca (strlen (res->ai_canonname) + 1);