diff options
author | Bartłomiej Piotrowski <b@bpiotrowski.pl> | 2016-07-11 21:28:37 +0200 |
---|---|---|
committer | Bartłomiej Piotrowski <b@bpiotrowski.pl> | 2016-07-11 21:28:57 +0200 |
commit | 10ffd057ca835020a8376a74f5d19c81c374ec12 (patch) | |
tree | 46ac184a654d64899ac6841df3a5222a1e5134c4 /testing/cpupower/nls.patch | |
parent | 02f8d2c555ef35dd5d8b1e93c4eb85b0c2b7f641 (diff) | |
download | aports-10ffd057ca835020a8376a74f5d19c81c374ec12.tar.bz2 aports-10ffd057ca835020a8376a74f5d19c81c374ec12.tar.xz |
testing/cpupower: fix build
Diffstat (limited to 'testing/cpupower/nls.patch')
-rw-r--r-- | testing/cpupower/nls.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/testing/cpupower/nls.patch b/testing/cpupower/nls.patch index 85398b4cd..24f5afd45 100644 --- a/testing/cpupower/nls.patch +++ b/testing/cpupower/nls.patch @@ -43,6 +43,25 @@ index 9ea9143..24d19db 100644 /* Turn "perf cmd --help" into "perf help cmd" */ if (argc > 1 && !strcmp(argv[1], "--help")) { +diff --git a/tools/power/cpupower/utils/helpers/helpers.h b/tools/power/cpupower/utils/helpers/helpers.h +index aa9e954..261692a 100644 +--- a/tools/power/cpupower/utils/helpers/helpers.h ++++ b/tools/power/cpupower/utils/helpers/helpers.h +@@ -10,13 +10,13 @@ + #ifndef __CPUPOWERUTILS_HELPERS__ + #define __CPUPOWERUTILS_HELPERS__ + +-#include <libintl.h> + #include <locale.h> + + #include "helpers/bitmask.h" + + /* Internationalization ****************************/ + #ifdef NLS ++#include <libintl.h> + + #define _(String) gettext(String) + #ifndef gettext_noop diff --git a/tools/power/cpupower/utils/idle_monitor/cpupower-monitor.c b/tools/power/cpupower/utils/idle_monitor/cpupower-monitor.c index 05f953f..dec8ff9 100644 --- a/tools/power/cpupower/utils/idle_monitor/cpupower-monitor.c |