Mercurial > cpython-lru_cache-weakref
diff Modules/socketmodule.c @ 20807:026bf0ab68a5 2.1
backport of MvL's 1.180
Test for __sun instead of __sun__, since SUNWspro only defines the latter;
gcc defines both.
...must get sparc box at home out of cupboard for testing this stuff...
| author | Anthony Baxter <anthonybaxter@gmail.com> |
|---|---|
| date | Thu, 01 Nov 2001 14:05:52 +0000 |
| parents | 076e5e49e27d |
| children | 464d213da888 |
line wrap: on
line diff
--- a/Modules/socketmodule.c Thu Nov 01 14:00:11 2001 +0000 +++ b/Modules/socketmodule.c Thu Nov 01 14:05:52 2001 +0000 @@ -87,7 +87,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 */
