[Python-checkins] r42510 - in python/branches/release24-maint: Misc/NEWS Modules/socketmodule.c
georg.brandl
python-checkins at python.org
Mon Feb 20 10:42:39 CET 2006
Author: georg.brandl
Date: Mon Feb 20 10:42:37 2006
New Revision: 42510
Modified:
python/branches/release24-maint/Misc/NEWS
python/branches/release24-maint/Modules/socketmodule.c
Log:
Bug #854823: socketmodule now builds on Sun platforms even when
INET_ADDRSTRLEN is not defined.
Modified: python/branches/release24-maint/Misc/NEWS
==============================================================================
--- python/branches/release24-maint/Misc/NEWS (original)
+++ python/branches/release24-maint/Misc/NEWS Mon Feb 20 10:42:37 2006
@@ -45,6 +45,9 @@
Extension Modules
-----------------
+- Bug #854823: socketmodule now builds on Sun platforms even when
+ INET_ADDRSTRLEN is not defined.
+
- Bug #876637, prevent stack corruption when socket descriptor
is larger than FD_SETSIZE.
Modified: python/branches/release24-maint/Modules/socketmodule.c
==============================================================================
--- python/branches/release24-maint/Modules/socketmodule.c (original)
+++ python/branches/release24-maint/Modules/socketmodule.c Mon Feb 20 10:42:37 2006
@@ -210,8 +210,8 @@
/* Irix 6.5 fails to define this variable at all. This is needed
for both GCC and SGI's compiler. I'd say that the SGI headers
- are just busted. */
-#if defined(__sgi) && !defined(INET_ADDRSTRLEN)
+ are just busted. Same thing for Solaris. */
+#if (defined(__sgi) || defined(sun)) && !defined(INET_ADDRSTRLEN)
#define INET_ADDRSTRLEN 16
#endif
More information about the Python-checkins
mailing list