summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2001-10-25 09:04:03 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2001-10-25 09:04:03 (GMT)
commit7c4b5faa93c37153851fe4c07c3221a593a03644 (patch)
tree353c69f1f92d7cad9c4d2f60370b0f3b400c299b /Modules
parent703ce8122cadd68a4260318f44725398fc3a383c (diff)
downloadcpython-7c4b5faa93c37153851fe4c07c3221a593a03644.zip
cpython-7c4b5faa93c37153851fe4c07c3221a593a03644.tar.gz
cpython-7c4b5faa93c37153851fe4c07c3221a593a03644.tar.bz2
After discussion with itojun, it was clarified that Tru64 is in error,
and that the work-around should be restricted to that system.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/socketmodule.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index 1d9a13d..0bb2e9a 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -613,12 +613,14 @@ setipaddr(char* name, struct sockaddr * addr_ret, int af)
memset(&hints, 0, sizeof(hints));
hints.ai_family = af;
error = getaddrinfo(name, NULL, &hints, &res);
+#if defined(__digital__) && defined(__unix__)
if (error == EAI_NONAME && af == AF_UNSPEC) {
- /* On OSF/1 V5.1, numeric-to-addr conversion
+ /* 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);
return -1;