diff options
Diffstat (limited to 'Modules/socketmodule.c')
-rw-r--r-- | Modules/socketmodule.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 039023f..4507eaa 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -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 |