diff 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
line wrap: on
line diff
--- a/src/sysdep.c	Fri Jan 04 19:53:34 2002 +0000
+++ b/src/sysdep.c	Sat Jan 05 07:33:24 2002 +0000
@@ -2373,7 +2373,11 @@
 
 	xzero (hints);
 	hints.ai_flags = AI_CANONNAME;
+#ifdef IPV6_CANONICALIZE
 	hints.ai_family = AF_UNSPEC;
+#else
+	hints.ai_family = PF_INET;
+#endif
 	hints.ai_socktype = SOCK_STREAM;
 	hints.ai_protocol = 0;
 	if (!getaddrinfo (hostname, NULL, &hints, &res))