]> granicus.if.org Git - python/commitdiff
After discussion with itojun, it was clarified that Tru64 is in error,
authorMartin v. Löwis <martin@v.loewis.de>
Thu, 25 Oct 2001 09:04:03 +0000 (09:04 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Thu, 25 Oct 2001 09:04:03 +0000 (09:04 +0000)
and that the work-around should be restricted to that system.

Modules/socketmodule.c

index 1d9a13d80fb851d1222bec0181f1ae1a576f3e6c..0bb2e9acd886835b0b69cdc693414172bc8b46a9 100644 (file)
@@ -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;