[Python-checkins] CVS: python/dist/src/Modules socketmodule.c,1.183,1.184

Martin v. L?wis loewis@users.sourceforge.net
2001年10月24日 07:36:02 -0700


Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv10527/Modules
Modified Files:
	socketmodule.c 
Log Message:
Index: socketmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/socketmodule.c,v
retrieving revision 1.183
retrieving revision 1.184
diff -C2 -d -r1.183 -r1.184
*** socketmodule.c	2001年10月19日 12:40:40	1.183
--- socketmodule.c	2001年10月24日 14:36:00	1.184
***************
*** 623,626 ****
--- 623,632 ----
 	hints.ai_family = af;
 	error = getaddrinfo(name, NULL, &hints, &res);
+ if (error = EAI_NONAME && af == AF_UNSPEC) {
+ /* On OSF/1 V5.1, numeric-to-addr conversion
+ fails if no address family is given. Assume IPv4 for now.*/
+ hints.ai_family = AF_INET;
+ error = getaddrinfo(name, NULL, &hints, &res);
+ }
 	if (error) {
 		PyGAI_Err(error);

AltStyle によって変換されたページ (->オリジナル) /