From bb0b54956b9d57f32e8998c1bdd6fed6aac96a6e Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Thu, 24 Mar 2011 13:57:34 +0100 Subject: internals.h: use sysconf(_SC_PAGESIZE) instead of __pagesize Rename PAGE_SIZE to __PAGE_SIZE to be sure that we do not get the definition from uClibc_page.h. Signed-off-by: Peter S. Mazinger Signed-off-by: Bernhard Reutner-Fischer --- libpthread/linuxthreads/internals.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'libpthread/linuxthreads') diff --git a/libpthread/linuxthreads/internals.h b/libpthread/linuxthreads/internals.h index eb0a51984..89aa1b635 100644 --- a/libpthread/linuxthreads/internals.h +++ b/libpthread/linuxthreads/internals.h @@ -200,19 +200,17 @@ static __inline__ int nonexisting_handle(pthread_handle h, pthread_t id) /* The page size we can get from the system. This should likely not be changed by the machine file but, you never know. */ -#ifndef PAGE_SIZE -#define PAGE_SIZE (sysconf (_SC_PAGE_SIZE)) -#endif +#define __PAGE_SIZE (sysconf (_SC_PAGESIZE)) -/* The initial size of the thread stack. Must be a multiple of PAGE_SIZE. */ +/* The initial size of the thread stack. Must be a multiple of __PAGE_SIZE. */ #ifndef INITIAL_STACK_SIZE -#define INITIAL_STACK_SIZE (4 * PAGE_SIZE) +#define INITIAL_STACK_SIZE (4 * __PAGE_SIZE) #endif /* Size of the thread manager stack. The "- 32" avoids wasting space with some malloc() implementations. */ #ifndef THREAD_MANAGER_STACK_SIZE -#define THREAD_MANAGER_STACK_SIZE (2 * PAGE_SIZE - 32) +#define THREAD_MANAGER_STACK_SIZE (2 * __PAGE_SIZE - 32) #endif /* The base of the "array" of thread stacks. The array will grow down from -- cgit v1.2.3