diff options
author | Lisa Nguyen <lisa.nguyen@linaro.org> | 2016-02-25 16:58:39 -0800 |
---|---|---|
committer | Lisa Nguyen <lisa.nguyen@linaro.org> | 2016-02-25 17:02:49 -0800 |
commit | cb9a46d73c887ab96a1dd29bfd1abc3730292c75 (patch) | |
tree | 118850ddd77027a2ae5a2f01a0c80227b48062d7 | |
parent | 63416d328d247085a626349cb5ddf400746610fd (diff) | |
download | powertop-2.0-temp.tar.gz |
Update android_stubs.h filetemp
Update android_stubs.h file to resolve stlport build issues. Changes
were originally made by Bernhard Rosenkränzer.
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
Signed-off-by: Lisa Nguyen <lisa.nguyen@linaro.org>
-rw-r--r-- | src/android_stubs.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/android_stubs.h b/src/android_stubs.h index 60b1e29..3202635 100644 --- a/src/android_stubs.h +++ b/src/android_stubs.h @@ -1,5 +1,6 @@ #include <linux/ethtool.h> #include <sys/socket.h> +#include <string> /* Android doesn't provide locale support int its C and C++ * runtime. Handled at higher level in application stack. @@ -11,8 +12,10 @@ #define textdomain(x) #define gettext(x) (x) -/* Android C++ new operator does not throw exception on failure */ +#ifndef _LIBCPP_VERSION +/* STLport C++ new operator does not throw exception on failure */ #define set_new_handler(x) +#endif /* define stubs for C++ exception handling */ #define try if (true) |