File ganglia-monitor-core-2.5.7-pageshift.patch of Package ganglia-monitor-core

--- lib/gexec_process.c
+++ lib/gexec_process.c
@@ -27,7 +27,7 @@
 
 /* useful macros */
 #define bytetok(x)   (((x) + 512) >> 10)
-#define pagetok(x)   ((x) << (PAGE_SHIFT - 10))
+#define pagetok(x)   ((x) << (getpagesize() - 10))
 
 typedef struct
    {
--- lib/gexec_process.c	2008-04-26 10:23:51.000000000 +0200
+++ lib/gexec_process.c	2008-04-26 10:24:01.000000000 +0200
@@ -22,7 +22,6 @@
 #include <ganglia/gexec_process.h>
 #include <ganglia/file.h>
 #include <sys/param.h>     /* for HZ */
-#include <asm/page.h>      /* for PAGE_SHIFT */
 #include <pthread.h>
 
 #ifndef HZ
openSUSE Build Service is sponsored by