mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
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.
This commit is contained in:
parent
761fcd03aa
commit
7a1229991d
1 changed files with 5 additions and 1 deletions
|
@ -91,8 +91,12 @@ Socket methods:
|
|||
#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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue