From: Anthony Baxter Date: Thu, 1 Nov 2001 14:05:52 +0000 (+0000) Subject: backport of MvL's 1.180 X-Git-Tag: v2.1.2c1~90 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7aff5e470aa43fecc082a273e073116f961f25f7;p=thirdparty%2FPython%2Fcpython.git 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... --- diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 083676684728..9356b657c853 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -87,7 +87,7 @@ Socket methods: #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 */