summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2014-02-13 12:25:21 -0800
committerColin Cross <ccross@android.com>2014-02-13 12:25:21 -0800
commitca0e5044a390d2bffeef4dd652a4157b8998ef99 (patch)
tree949cad5c40970089340c5b567dd1a6945ee5944c
parent579c9bc8a48a34b4fc5065a49febf7f80b2dd4c4 (diff)
downloadsystem_core-ca0e5044a390d2bffeef4dd652a4157b8998ef99.zip
system_core-ca0e5044a390d2bffeef4dd652a4157b8998ef99.tar.gz
system_core-ca0e5044a390d2bffeef4dd652a4157b8998ef99.tar.bz2
charger: add locale global variable
Some functions in minui reference a global extern char *locale. None of them are used by charger, but the bfd linker cannot optimize them out and fails to link charger. Define char *locale in charger.c so it can resolve the symbol. Change-Id: I738daf95d24356bf96bd226d91a5dc64b5d4dc9b
-rw-r--r--charger/charger.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/charger/charger.c b/charger/charger.c
index 66ddeaf..8f9169d 100644
--- a/charger/charger.c
+++ b/charger/charger.c
@@ -47,6 +47,8 @@
#include "minui/minui.h"
+char *locale;
+
#ifndef max
#define max(a,b) ((a) > (b) ? (a) : (b))
#endif