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