]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
backport of MvL's 1.180
authorAnthony Baxter <anthonybaxter@gmail.com>
Thu, 1 Nov 2001 14:05:52 +0000 (14:05 +0000)
committerAnthony Baxter <anthonybaxter@gmail.com>
Thu, 1 Nov 2001 14:05:52 +0000 (14:05 +0000)
  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...

Modules/socketmodule.c

index 083676684728b03f07d6a168e3f67c6db1fc7679..9356b657c853209fbeaaacc414da5e48ee1b8a2f 100644 (file)
@@ -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 */