summaryrefslogtreecommitdiffstats
path: root/Modules/resource.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/resource.c')
-rw-r--r--Modules/resource.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/resource.c b/Modules/resource.c
index c1b6377..c5bec79 100644
--- a/Modules/resource.c
+++ b/Modules/resource.c
@@ -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);