diff options
author | Vishal Bhoj <vishal.bhoj@hackbox.linaro.org> | 2015-02-11 06:08:30 +0000 |
---|---|---|
committer | Lisa Nguyen <lisa.nguyen@linaro.org> | 2016-08-08 11:14:40 -0700 |
commit | e20fc2e7aee9c3bdf263d19f5cf0a30c792e37a4 (patch) | |
tree | 1f43148a59afcff8c102c498dd696ed493210c34 | |
parent | 85cac7d27083ad895ca87c7769f6aac90d7b9bf8 (diff) | |
download | powertop-2.0-e20fc2e7aee9c3bdf263d19f5cf0a30c792e37a4.tar.gz |
Fix Compiler errors on Android
Signed-off-by: Vishal Bhoj <vishal.bhoj@hackbox.linaro.org>
-rw-r--r-- | src/lib.cpp | 5 | ||||
-rw-r--r-- | src/lib.h | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/lib.cpp b/src/lib.cpp index e1ab0b9..95c8577 100644 --- a/src/lib.cpp +++ b/src/lib.cpp @@ -53,13 +53,16 @@ extern "C" { #include <sys/stat.h> #include <dirent.h> #include <locale.h> -#include <libintl.h> #include <limits> #include <math.h> #include <ncurses.h> #include <fcntl.h> #include <glob.h> +#ifndef __ANDROID__ +#include <libintl.h> +#endif + static int kallsyms_read = 0; int is_turbo(uint64_t freq, uint64_t max, uint64_t maxmo) @@ -25,7 +25,6 @@ #ifndef INCLUDE_GUARD_LIB_H #define INCLUDE_GUARD_LIB_H -#include <libintl.h> #include <stdint.h> #include <stdlib.h> #include <cstring> @@ -37,6 +36,8 @@ #ifdef __ANDROID__ #include "android_stubs.h" +#else +#include <libintl.h> #endif #ifdef ENABLE_NLS |