Commit 0cb3c635 authored by Martin v. Löwis's avatar Martin v. Löwis

Patch #1005568: Use _SC_PAGESIZE on Irix.

Backported to 2.3.
parent a9170c7e
......@@ -202,7 +202,12 @@ resource_getpagesize(PyObject *self, PyObject *args)
#if defined(HAVE_GETPAGESIZE)
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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment