[Python-checkins] CVS: python/dist/src/Modules socketmodule.c,1.186,1.187
Martin v. L?wis
loewis@users.sourceforge.net
2001年10月25日 02:04:05 -0700
Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv10605
Modified Files:
socketmodule.c
Log Message:
After discussion with itojun, it was clarified that Tru64 is in error,
and that the work-around should be restricted to that system.
Index: socketmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/socketmodule.c,v
retrieving revision 1.186
retrieving revision 1.187
diff -C2 -d -r1.186 -r1.187
*** socketmodule.c 2001年10月24日 20:37:10 1.186
--- socketmodule.c 2001年10月25日 09:04:03 1.187
***************
*** 614,623 ****
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);
--- 614,625 ----
hints.ai_family = af;
error = getaddrinfo(name, NULL, &hints, &res);
+ #if defined(__digital__) && defined(__unix__)
if (error == EAI_NONAME && af == AF_UNSPEC) {
! /* On Tru64 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);
}
+ #endif
if (error) {
PyGAI_Err(error);