From: Ciaran McCreesh Date: Fri, 20 Aug 2004 06:01:35 +0000 (+0200) Subject: contrib: minimal ps: define mips PAGE_SIZE X-Git-Tag: v3.3.2~193 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f78352f10ab3dba2992078b443bff840f0e5dfd4;p=procps-ng 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 --- 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