diff options
author | winnie@der-winnie.de <winnie@der-winnie.de> | 2011-04-21 13:48:51 -0700 |
---|---|---|
committer | Kristen Carlson Accardi <kristen@linux.intel.com> | 2011-04-21 14:48:59 -0700 |
commit | a70f84566b190c4e31316703e42be5e1a6b2b914 (patch) | |
tree | 430e32d8d3a05c65a82ed277eab18b92b24a458e | |
parent | b64cad589ef59fb2b46849916ac05c5adc21f57d (diff) | |
download | powertop-a70f84566b190c4e31316703e42be5e1a6b2b914.tar.gz |
Fix for build failure on ia64 and sparc
Signed-off-by: Kristen Carlson Accardi <kristen@linux.intel.com>
-rw-r--r-- | perf/perf.cpp | 8 | ||||
-rw-r--r-- | po/powertop.pot | 8 |
2 files changed, 12 insertions, 4 deletions
diff --git a/perf/perf.cpp b/perf/perf.cpp index 73682aa..9abefca 100644 --- a/perf/perf.cpp +++ b/perf/perf.cpp @@ -41,6 +41,14 @@ #include "perf_event.h" +/* __NR_perf_event_open in ia64 and alpha is defined elsewhere */ +#ifdef __ia64__ +#include <asm-generic/unistd.h> +#endif +#ifdef __alpha__ +#include <asm-generic/unistd.h> +#endif + #include "perf.h" #include "../lib.h" #include "../display.h" diff --git a/po/powertop.pot b/po/powertop.pot index e9b75c5..ba6224a 100644 --- a/po/powertop.pot +++ b/po/powertop.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-04-21 13:40-0700\n" +"POT-Creation-Date: 2011-04-21 13:48-0700\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" @@ -203,7 +203,7 @@ msgstr "" msgid "C7 (pc7)" msgstr "" -#: perf/perf.cpp:113 +#: perf/perf.cpp:121 #, c-format msgid "" "CONFIG_PERF_EVENTS=y\n" @@ -382,7 +382,7 @@ msgstr "" msgid "PowerTOP " msgstr "" -#: perf/perf.cpp:111 +#: perf/perf.cpp:119 #, c-format msgid "PowerTOP %s needs the kernel to support the 'perf' subsystem\n" msgstr "" @@ -492,7 +492,7 @@ msgstr "" msgid "Wireless Power Saving for interface %s" msgstr "" -#: perf/perf.cpp:112 +#: perf/perf.cpp:120 #, c-format msgid "as well as support for trace points in the kernel:\n" msgstr "" |