[Python-checkins] python/dist/src/Modules resource.c,2.31,2.32
loewis at users.sourceforge.net
loewis at users.sourceforge.net
Thu Aug 12 15:26:59 CEST 2004
Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13901/Modules
Modified Files:
resource.c
Log Message:
Patch #1005568: Use _SC_PAGESIZE on Irix.
Backported to 2.3.
Index: resource.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/resource.c,v
retrieving revision 2.31
retrieving revision 2.32
diff -C2 -d -r2.31 -r2.32
*** resource.c 30 Mar 2003 20:51:29 -0000 2.31
--- resource.c 12 Aug 2004 13:26:56 -0000 2.32
***************
*** 203,207 ****
--- 203,212 ----
pagesize = getpagesize();
#elif defined(HAVE_SYSCONF)
+ #if defined(_SC_PAGE_SIZE)
pagesize = sysconf(_SC_PAGE_SIZE);
+ #else
+ /* Irix 5.3 has _SC_PAGESIZE, but not _SC_PAGE_SIZE */
+ pagesize = sysconf(_SC_PAGESIZE);
+ #endif
#endif
return Py_BuildValue("i", pagesize);
More information about the Python-checkins
mailing list