diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2012-08-01 20:37:49 +0200 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2012-08-01 20:37:49 +0200 |
commit | 5e671c8e79bf0ebbb19bbb40872d17777f8f9fdd (patch) | |
tree | 9629d7546c402ede3072a3b4fbed631564cf0766 /package | |
parent | df6ef452e7fafc604d8b11c1ccb68279d41bb7cd (diff) |
sysprof: add patch to fix PowerPC build problem
Fixes
http://autobuild.buildroot.org/results/5841486b8ecc9f13e46f03413a2805d2966cd2d5/build-end.log
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package')
-rw-r--r-- | package/sysprof/sysprof-03-fix-powerpc-checks.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/package/sysprof/sysprof-03-fix-powerpc-checks.patch b/package/sysprof/sysprof-03-fix-powerpc-checks.patch new file mode 100644 index 000000000..8d69f7498 --- /dev/null +++ b/package/sysprof/sysprof-03-fix-powerpc-checks.patch @@ -0,0 +1,26 @@ +From 4708a509aa9d65ae93e9824e42ddbc6e8d42d90c Mon Sep 17 00:00:00 2001 +From: Michel Dänzer <michel@daenzer.net> +Date: Sat, 27 Aug 2011 18:04:44 +0000 +Subject: Fix PowerPC checks for __NR_perf_counter_open. + +__ppc__ isn't defined here on Debian powerpc. Grepping through the headers +installed in /usr/include, there are a few references to __ppc__ and +__ppc64__, but I suspect they're for other OSs. + +Signed-off-by: Michel Dänzer <michel@daenzer.net> +--- +diff --git a/collector.c b/collector.c +index b28964f..fe16967 100644 +--- a/collector.c ++++ b/collector.c +@@ -175,7 +175,7 @@ sysprof_perf_counter_open (struct perf_counter_attr *attr, + #define __NR_perf_counter_open 337 + #elif defined(__hppa__) + #define __NR_perf_counter_open 318 +-#elif defined(__ppc__) || defined(__ppc64__) ++#elif defined(__powerpc__) || defined(__powerpc64__) + #define __NR_perf_counter_open 319 + #elif defined(__s390__) + #define __NR_perf_counter_open 331 +-- +cgit v0.9.0.2 |