diff options
| author | Breno Leitao <breno.leitao@gmail.com> | 2017-04-08 22:01:00 +0000 |
|---|---|---|
| committer | Breno Leitao <breno.leitao@gmail.com> | 2017-04-08 22:01:00 +0000 |
| commit | 932f2160cb45fa7059ac8e31ececa5938ad8c59d (patch) | |
| tree | 128f4737fbc0d292d56e69941847cf38a6121eae /testing/thermald/ppc64le.patch | |
| parent | 9a201ed69d1aa45e84a636598fffb59805ec06b2 (diff) | |
| download | aports-932f2160cb45fa7059ac8e31ececa5938ad8c59d.tar.bz2 aports-932f2160cb45fa7059ac8e31ececa5938ad8c59d.tar.xz | |
testing/thermald: fix FTBFS on ppc64le
Currently musl on ppc64le does not define cpuid.h. Avoiding including
and calling _cpuid.
Diffstat (limited to 'testing/thermald/ppc64le.patch')
| -rw-r--r-- | testing/thermald/ppc64le.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/testing/thermald/ppc64le.patch b/testing/thermald/ppc64le.patch new file mode 100644 index 0000000000..76d5527b79 --- /dev/null +++ b/testing/thermald/ppc64le.patch @@ -0,0 +1,36 @@ +Author: Breno Leitao <breno.leitao@gmail.com> +Date: Sat Apr 8 21:31:07 2017 +0000 + + Enable the build on ppc64le Currently musl on ppc64le does not define + cpuid.h. Avoiding calling it. + + Signed-off-by: Breno Leitao <breno.leitao@gmail.com> + +--- a/src/thd_engine.cpp.old ++++ b/src/thd_engine.cpp +@@ -35,13 +35,15 @@ + #include <errno.h> + #include <sys/types.h> + #include <sys/utsname.h> +-#include <cpuid.h> + #include <locale> + #include "thd_engine.h" + #include "thd_cdev_therm_sys_fs.h" + #include "thd_zone_therm_sys_fs.h" + #include "thd_zone_dynamic.h" + #include "thd_cdev_gen_sysfs.h" ++#ifndef __powerpc__ ++#include <cpuid.h> ++#endif + + static void *cthd_engine_thread(void *arg); + +@@ -603,7 +605,7 @@ + }; + + int cthd_engine::check_cpu_id() { +-#ifndef ANDROID ++#if !defined(ANDROID) && !defined(__powerpc__) + // Copied from turbostat program + unsigned int ebx, ecx, edx, max_level; + unsigned int fms, family, model, stepping; |
