summaryrefslogtreecommitdiffstats
path: root/Modules/socketmodule.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2001-10-13 09:00:42 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2001-10-13 09:00:42 (GMT)
commit1c07b4b4fbf6c89c6789343e21ea16f52f905f2d (patch)
treeffd0a29e1a222017100959b99bbc1d955b33315c /Modules/socketmodule.c
parenta38d9169bc9b1a290b403f9b9c82a096af10b4d6 (diff)
downloadcpython-1c07b4b4fbf6c89c6789343e21ea16f52f905f2d.zip
cpython-1c07b4b4fbf6c89c6789343e21ea16f52f905f2d.tar.gz
cpython-1c07b4b4fbf6c89c6789343e21ea16f52f905f2d.tar.bz2
Test for __sun instead of __sun__, since SUNWspro only defines the latter;
gcc defines both.
Diffstat (limited to 'Modules/socketmodule.c')
-rw-r--r--Modules/socketmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index 2ca99c9..053d2ba 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -94,7 +94,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 */