projects
/
chise
/
xemacs-chise.git-
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
XEmacs 21.4.4 "Artificial Intelligence".
[chise/xemacs-chise.git-]
/
src
/
process-unix.c
diff --git
a/src/process-unix.c
b/src/process-unix.c
index
ec93385
..
df7e824
100644
(file)
--- a/
src/process-unix.c
+++ b/
src/process-unix.c
@@
-1587,7
+1587,11
@@
unix_canonicalize_host_name (Lisp_Object host)
xzero (hints);
hints.ai_flags = AI_CANONNAME;
xzero (hints);
hints.ai_flags = AI_CANONNAME;
+#ifdef IPV6_CANONICALIZE
hints.ai_family = AF_UNSPEC;
hints.ai_family = AF_UNSPEC;
+#else
+ hints.ai_family = PF_INET;
+#endif
hints.ai_socktype = SOCK_STREAM;
hints.ai_protocol = 0;
LISP_STRING_TO_EXTERNAL (host, ext_host, Qnative);
hints.ai_socktype = SOCK_STREAM;
hints.ai_protocol = 0;
LISP_STRING_TO_EXTERNAL (host, ext_host, Qnative);