diff options
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 85398b4cda..24f5afd45f 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 |