add HUGE sample uClibc for full LTP
[buildroot.git] / package / procps / procps-mips-define-pagesize.patch
blob3802f4ccecfb75670913aaba062fa82ce7244a4e
1 diff -Naurp procps-3.2.3.orig/minimal.c procps-3.2.3/minimal.c
2 --- procps-3.2.3.orig/minimal.c 2004-05-04 20:26:14.000000000 -0400
3 +++ procps-3.2.3/minimal.c 2004-08-20 02:01:35.868100752 -0400
4 @@ -68,8 +68,8 @@
5 ///////////////////////////////////////////////////////////
7 #ifndef PAGE_SIZE
8 -#warning PAGE_SIZE not defined, assuming it is 4096
9 -#define PAGE_SIZE 4096
10 +#warning PAGE_SIZE not defined, using sysconf() to determine correct value
11 +#define PAGE_SIZE (sysconf(_SC_PAGESIZE))
12 #endif
15 diff -Naurp procps-3.2.3.orig/ps/common.h procps-3.2.3/ps/common.h
16 --- procps-3.2.3.orig/ps/common.h 2004-04-25 17:03:18.000000000 -0400
17 +++ procps-3.2.3/ps/common.h 2004-08-20 02:00:59.228670792 -0400
18 @@ -16,6 +16,11 @@
19 #include "../proc/readproc.h"
20 #include <asm/page.h> /* looks safe for glibc, we need PAGE_SIZE */
22 +#ifndef PAGE_SIZE
23 +#warning PAGE_SIZE not defined, using sysconf() to determine correct value
24 +#define PAGE_SIZE (sysconf(_SC_PAGESIZE))
25 +#endif
27 #if 0
28 #define trace(args...) printf(## args)
29 #else