Neil Horman 6f7d5b
diff -up numactl-1.0.2/syscall.c.orig numactl-1.0.2/syscall.c
Neil Horman 491135
--- numactl-1.0.2/syscall.c.orig	2007-08-16 10:36:23.000000000 -0400
Neil Horman 491135
+++ numactl-1.0.2/syscall.c	2007-12-20 10:33:27.000000000 -0500
Neil Horman 6f7d5b
@@ -127,7 +127,7 @@ long syscall6(long call, long a, long b,
Neil Horman 6f7d5b
 #endif
Neil Horman 6f7d5b
 
Neil Horman 6f7d5b
 long WEAK get_mempolicy(int *policy, 
Neil Horman 6f7d5b
-		   const unsigned long *nmask, unsigned long maxnode,
Neil Horman 6f7d5b
+		   unsigned long *nmask, unsigned long maxnode,
Neil Horman 6f7d5b
 		   void *addr, int flags)          
Neil Horman 6f7d5b
 {
Neil Horman 6f7d5b
 	return syscall(__NR_get_mempolicy, policy, nmask, maxnode, addr, flags);
Neil Horman 491135
diff -up numactl-1.0.2/numaint.h.orig numactl-1.0.2/numaint.h
Neil Horman 491135
--- numactl-1.0.2/numaint.h.orig	2007-12-20 10:33:53.000000000 -0500
Neil Horman 491135
+++ numactl-1.0.2/numaint.h	2007-12-20 10:33:58.000000000 -0500
Neil Horman 491135
@@ -5,7 +5,7 @@ extern int numa_sched_setaffinity(pid_t 
Neil Horman 491135
 extern int numa_sched_getaffinity(pid_t pid, unsigned len, const unsigned long *mask);
Neil Horman 491135
 extern int numa_sched_setaffinity_int(pid_t pid, unsigned len,const unsigned long *mask);
Neil Horman 491135
 extern int numa_sched_getaffinity_int(pid_t pid, unsigned len,const unsigned long *mask);
Neil Horman 491135
-extern long get_mempolicy_int(int *policy, const unsigned long *nmask, 
Neil Horman 491135
+extern long get_mempolicy_int(int *policy, unsigned long *nmask, 
Neil Horman 491135
 			      unsigned long maxnode, void *addr, int flags);
Neil Horman 491135
 extern long mbind_int(void *start, unsigned long len, int mode, 
Neil Horman 491135
 		  const unsigned long *nmask, unsigned long maxnode, unsigned flags);
Neil Horman 6f7d5b
diff -up numactl-1.0.2/numaif.h.orig numactl-1.0.2/numaif.h
Neil Horman 491135
--- numactl-1.0.2/numaif.h.orig	2007-08-16 10:36:23.000000000 -0400
Neil Horman 491135
+++ numactl-1.0.2/numaif.h	2007-12-20 10:33:27.000000000 -0500
Neil Horman 6f7d5b
@@ -9,7 +9,7 @@ extern "C" { 
Neil Horman 6f7d5b
 
Neil Horman 6f7d5b
 /* System calls */
Neil Horman 6f7d5b
 extern long get_mempolicy(int *policy, 
Neil Horman 6f7d5b
-			  const unsigned long *nmask, unsigned long maxnode,
Neil Horman 6f7d5b
+			  unsigned long *nmask, unsigned long maxnode,
Neil Horman 6f7d5b
 			  void *addr, int flags);
Neil Horman 6f7d5b
 extern long mbind(void *start, unsigned long len, int mode, 
Neil Horman 6f7d5b
 		  const unsigned long *nmask, unsigned long maxnode, unsigned flags);