elfutils: Don't try to use dgettext on Android
dgettext doesn't seem to be in bionic, causing perf to fail to link
when linking to the static libelf built here
Change-Id: I4cda6df902a6c6c05863c5485da4cc7e46299052
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
diff --git a/bionic-fixup/AndroidFixup.h b/bionic-fixup/AndroidFixup.h
index e96d57e..87cc348 100644
--- a/bionic-fixup/AndroidFixup.h
+++ b/bionic-fixup/AndroidFixup.h
@@ -44,6 +44,7 @@
/* no internalization */
#define gettext(x) (x)
+#define dgettext(x, y) (y)
/* _mempcpy and mempcpy */
#ifndef __mempcpy
@@ -80,7 +81,7 @@
}
/* forward declarations */
-char * dgettext (const char * domainname, const char * msgid);
+/* char * dgettext (const char * domainname, const char * msgid); */
ssize_t getline(char **lineptr, size_t *n, FILE *stream);