diff Modules/socketmodule.c @ 20661:f7009167dd67 legacy-trunk

After discussion with itojun, it was clarified that Tru64 is in error, and that the work-around should be restricted to that system.
author Martin v. Löwis <martin@v.loewis.de>
date Thu, 25 Oct 2001 09:04:03 +0000
parents edd9d0b3c47e
children e89c25ca6b29
line wrap: on
line diff
--- a/Modules/socketmodule.c	Wed Oct 24 22:16:30 2001 +0000
+++ b/Modules/socketmodule.c	Thu Oct 25 09:04:03 2001 +0000
@@ -613,12 +613,14 @@
 	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;