[Python-checkins] python/dist/src/Modules socketmodule.c,1.270,1.271
jhylton@users.sourceforge.net
jhylton@users.sourceforge.net
Thu, 17 Jul 2003 09:58:50 -0700
Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1:/tmp/cvs-serv8093
Modified Files:
socketmodule.c
Log Message:
Get socketmodule compiling on IRIX 6.5.10.
I don't think the fix here is very good, but I'm not sure what would
be better. In particular, we should not be defining _SGIAPI, but lots
of things break if we remove it.
Index: socketmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/socketmodule.c,v
retrieving revision 1.270
retrieving revision 1.271
diff -C2 -d -r1.270 -r1.271
*** socketmodule.c 9 Jul 2003 04:57:46 -0000 1.270
--- socketmodule.c 17 Jul 2003 16:58:48 -0000 1.271
***************
*** 186,195 ****
#endif
! #if defined(__sgi)&&_COMPILER_VERSION>700 && !_SGIAPI
/* make sure that the reentrant (gethostbyaddr_r etc)
functions are declared correctly if compiling with
MIPSPro 7.x in ANSI C mode (default) */
#define _SGIAPI 1
! #include "netdb.h"
#endif
--- 186,204 ----
#endif
! #if defined(__sgi) && _COMPILER_VERSION>700 && !_SGIAPI
/* make sure that the reentrant (gethostbyaddr_r etc)
functions are declared correctly if compiling with
MIPSPro 7.x in ANSI C mode (default) */
+
+ /* XXX Using _SGIAPI is the wrong thing,
+ but I don't know what the right thing is. */
#define _SGIAPI 1
!
! #ifndef ENABLE_IPV6
! #define INET_ADDRSTRLEN 16
! #endif
!
! #define HAVE_INET_PTON
! #include <netdb.h>
#endif