summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorCiaran McCreesh <ciaranm@gentoo.org>2004-08-20 08:01:35 +0200
committerCraig Small <csmall@enc.com.au>2011-12-18 22:25:11 +1100
commitf78352f10ab3dba2992078b443bff840f0e5dfd4 (patch)
treefa6cafccad69979501761b22c296b449268d912a /contrib
parent90b201f1f4de703e97bf8102babc4a32706e7fa5 (diff)
downloadprocps-ng-f78352f10ab3dba2992078b443bff840f0e5dfd4.tar.gz
contrib: minimal ps: define mips PAGE_SIZE
A patch from Gentoo. Bug-Gentoo: http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-process/procps/files/procps-mips-define-pagesize.patch?revision=1.1&view=markup Backported-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'contrib')
-rw-r--r--contrib/minimal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/minimal.c b/contrib/minimal.c
index a38e4c7..820c11d 100644
--- a/contrib/minimal.c
+++ b/contrib/minimal.c
@@ -68,8 +68,8 @@
///////////////////////////////////////////////////////////
#ifndef PAGE_SIZE
-#warning PAGE_SIZE not defined, assuming it is 4096
-#define PAGE_SIZE 4096
+#warning PAGE_SIZE not defined, using sysconf() to determine correct value
+#define PAGE_SIZE (sysconf(_SC_PAGESIZE))
#endif