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

--- lib/gexec_process.c.orig	2012-02-19 20:30:26.297872902 +0100
+++ lib/gexec_process.c	2012-02-19 20:31:06.596871469 +0100
@@ -22,12 +22,11 @@
 #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>
 
 /* useful macros */
 #define bytetok(x)   (((x) + 512) >> 10)
-#define pagetok(x)   ((x) << (PAGE_SHIFT - 10))
+#define pagetok(x)   ((x) << (getpagesize() - 10))
 
 typedef struct
    {
openSUSE Build Service is sponsored by