This variable was not supposed to be exported to userland, given that its value might change at during kernel run-time life. --- lib/direct/system.c | 12 ++---------- 1 files changed, 2 insertions(+), 10 deletions(-)
diff --git a/lib/direct/system.c b/lib/direct/system.c index 9640d6e..06975bd 100644 --- a/lib/direct/system.c +++ b/lib/direct/system.c @@ -34,14 +34,6 @@ #include <direct/build.h> #include <direct/system.h> -#if HAVE_ASM_PAGE_H -#include <asm/page.h> -#endif - -#ifndef PAGE_SIZE -#define PAGE_SIZE sysconf( _SC_PAGESIZE ) -#endif - #if DIRECT_BUILD_GETTID && defined(HAVE_LINUX_UNISTD_H) #include <linux/unistd.h> #endif @@ -63,13 +55,13 @@ direct_gettid() long direct_pagesize() { - return PAGE_SIZE; + return sysconf( _SC_PAGESIZE ); } unsigned long direct_page_align( unsigned long value ) { - unsigned long mask = PAGE_SIZE - 1; + unsigned long mask = sysconf( _SC_PAGESIZE ) - 1; return (value + mask) & ~mask; } -- 1.5.3.7 _______________________________________________ directfb-dev mailing list directfb-dev@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev