aboutsummaryrefslogtreecommitdiffstats
path: root/package/devel/oprofile/patches/110-fix_compile_error.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-06-06 10:51:44 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-06-06 10:51:44 +0000
commit502d8e63579d098a8c5b7d25b17b5fe286713fe5 (patch)
tree1b91f587f0b5f8bc2c3a3267a7ad32997d2c5290 /package/devel/oprofile/patches/110-fix_compile_error.patch
parent49058e0cfd825a57640c4592c67519910eec1bf5 (diff)
downloadmaster-187ad058-502d8e63579d098a8c5b7d25b17b5fe286713fe5.tar.gz
master-187ad058-502d8e63579d098a8c5b7d25b17b5fe286713fe5.tar.bz2
master-187ad058-502d8e63579d098a8c5b7d25b17b5fe286713fe5.zip
oprofile: update to 0.9.9, fix compile error
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41035 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/devel/oprofile/patches/110-fix_compile_error.patch')
-rw-r--r--package/devel/oprofile/patches/110-fix_compile_error.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/package/devel/oprofile/patches/110-fix_compile_error.patch b/package/devel/oprofile/patches/110-fix_compile_error.patch
new file mode 100644
index 0000000000..708f83ee6c
--- /dev/null
+++ b/package/devel/oprofile/patches/110-fix_compile_error.patch
@@ -0,0 +1,30 @@
+--- a/libop/op_cpu_type.c
++++ b/libop/op_cpu_type.c
+@@ -250,6 +250,7 @@ static void release_at_hw_platform(void)
+ }
+ }
+
++#ifdef PPC64
+ static op_cpu _try_ppc64_arch_generic_cpu(void)
+ {
+ const char * platform, * base_platform;
+@@ -312,6 +313,7 @@ static op_cpu _get_ppc64_cpu_type(void)
+ cpu_type = op_get_cpu_number(cpu_type_str);
+ return cpu_type;
+ }
++#endif
+
+ static op_cpu _get_arm_cpu_type(void)
+ {
+@@ -592,9 +594,11 @@ static op_cpu __get_cpu_type_alt_method(
+ fnmatch("i?86", uname_info.machine, 0) == 0) {
+ return _get_x86_64_cpu_type();
+ }
++#ifdef PPC64
+ if (strncmp(uname_info.machine, "ppc64", 5) == 0) {
+ return _get_ppc64_cpu_type();
+ }
++#endif
+ if (strncmp(uname_info.machine, "arm", 3) == 0) {
+ return _get_arm_cpu_type();
+ }