[Python-checkins] python/dist/src/Modules _hotshot.c,1.28,1.29 posixmodule.c,2.259,2.260 socketmodule.c,1.244,1.245

loewis@users.sourceforge.net loewis@users.sourceforge.net
2002年9月19日 01:03:24 -0700


Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv20374/Modules
Modified Files:
	_hotshot.c posixmodule.c socketmodule.c 
Log Message:
Patch #608999: Fix portability problems with MIPSPro 7.x
Index: _hotshot.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/_hotshot.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -C2 -d -r1.28 -r1.29
*** _hotshot.c	11 Sep 2002 17:09:45 -0000	1.28
--- _hotshot.c	19 Sep 2002 08:03:20 -0000	1.29
***************
*** 56,59 ****
--- 56,65 ----
 #endif
 
+ #if defined(__sgi) && _COMPILER_VERSION>700 && !defined(PATH_MAX)
+ /* fix PATH_MAX not being defined with MIPSPro 7.x
+ if mode is ANSI C (default) */
+ #define PATH_MAX 1024
+ #endif
+ 
 #ifndef PATH_MAX
 # ifdef MAX_PATH
Index: posixmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/posixmodule.c,v
retrieving revision 2.259
retrieving revision 2.260
diff -C2 -d -r2.259 -r2.260
*** posixmodule.c	15 Sep 2002 18:45:46 -0000	2.259
--- posixmodule.c	19 Sep 2002 08:03:20 -0000	2.260
***************
*** 130,133 ****
--- 130,139 ----
 #endif
 
+ #if defined(__sgi)&&_COMPILER_VERSION>=700
+ /* declare ctermid_r if compiling with MIPSPro 7.x in ANSI C mode
+ (default) */
+ extern char *ctermid_r(char *);
+ #endif
+ 
 #ifndef HAVE_UNISTD_H
 #if defined(PYCC_VACPP)
Index: socketmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/socketmodule.c,v
retrieving revision 1.244
retrieving revision 1.245
diff -C2 -d -r1.244 -r1.245
*** socketmodule.c	3 Sep 2002 19:10:18 -0000	1.244
--- socketmodule.c	19 Sep 2002 08:03:21 -0000	1.245
***************
*** 156,159 ****
--- 156,167 ----
 #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
+ 
 /* Generic includes */
 #include <sys/types.h>

AltStyle によって変換されたページ (->オリジナル) /