From f78352f10ab3dba2992078b443bff840f0e5dfd4 Mon Sep 17 00:00:00 2001 From: Ciaran McCreesh Date: Fri, 20 Aug 2004 08:01:35 +0200 Subject: [PATCH] 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 --- contrib/minimal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/minimal.c b/contrib/minimal.c index a38e4c79..820c11de 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 -- 2.50.1