Mercurial > cpython-lru_cache-weakref
diff Modules/socketmodule.c @ 20412:698bf7c22bfe legacy-trunk
Test for __sun instead of __sun__, since SUNWspro only defines the latter;
gcc defines both.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Sat, 13 Oct 2001 09:00:42 +0000 |
| parents | b47168178d87 |
| children | 9be2cc6b9959 |
line wrap: on
line diff
--- a/Modules/socketmodule.c Sat Oct 13 08:50:10 2001 +0000 +++ b/Modules/socketmodule.c Sat Oct 13 09:00:42 2001 +0000 @@ -94,7 +94,7 @@ #ifdef HAVE_GETHOSTBYNAME_R #if defined(_AIX) || defined(__osf__) #define HAVE_GETHOSTBYNAME_R_3_ARG -#elif defined(__sun__) || defined(__sgi) +#elif defined(__sun) || defined(__sgi) #define HAVE_GETHOSTBYNAME_R_5_ARG #elif defined(linux) /* Rely on the configure script */
