summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/sysprof/files/ppc-macro-fix.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-kernel/sysprof/files/ppc-macro-fix.patch')
-rw-r--r--meta/recipes-kernel/sysprof/files/ppc-macro-fix.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/meta/recipes-kernel/sysprof/files/ppc-macro-fix.patch b/meta/recipes-kernel/sysprof/files/ppc-macro-fix.patch
new file mode 100644
index 0000000000..a2e015a0c5
--- /dev/null
+++ b/meta/recipes-kernel/sysprof/files/ppc-macro-fix.patch
@@ -0,0 +1,13 @@
1Index: git/collector.c
2===================================================================
3--- git.orig/collector.c 2010-12-09 19:42:12.292040001 -0600
4+++ git/collector.c 2010-12-09 19:42:23.352039997 -0600
5@@ -175,7 +175,7 @@
6 #define __NR_perf_counter_open 337
7 #elif defined(__hppa__)
8 #define __NR_perf_counter_open 318
9-#elif defined(__ppc__) || defined(__ppc64__)
10+#elif defined(__powerpc__) || defined(__powerpc64__)
11 #define __NR_perf_counter_open 319
12 #elif defined(__s390__)
13 #define __NR_perf_counter_open 331