diff Modules/socketmodule.c @ 10579:1ed1eb5bc6ec legacy-trunk

Put back __osf__ support for gethostbyname_r(); the real bug was that it was being used even without threads. This of course might be an all-platform problem so now we only use the _r variant when we are using threads.
author Guido van Rossum <guido@python.org>
date Tue, 13 Apr 1999 04:07:32 +0000
parents 3be0525bf47f
children 35e0d03f2b02
line wrap: on
line diff
--- a/Modules/socketmodule.c	Mon Apr 12 22:51:20 1999 +0000
+++ b/Modules/socketmodule.c	Tue Apr 13 04:07:32 1999 +0000
@@ -91,8 +91,12 @@
 #undef HAVE_GETHOSTBYNAME_R_5_ARG
 #undef HAVE_GETHOSTBYNAME_R_6_ARG
 
+#ifndef WITH_THREAD
+#undef HAVE_GETHOSTBYNAME_R
+#endif
+
 #ifdef HAVE_GETHOSTBYNAME_R
-#if defined(_AIX)
+#if defined(_AIX) || defined(__osf__)
 #define HAVE_GETHOSTBYNAME_R_3_ARG
 #elif defined(__sun__) || defined(__sgi)
 #define HAVE_GETHOSTBYNAME_R_5_ARG