summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2012-02-06 21:06:16 +0100
committerWerner Koch <wk@gnupg.org>2012-02-06 21:06:16 +0100
commit115a6ed55d1f6be33f66de6734359fa590ca3749 (patch)
tree79e1493be3fd2d120805b61e5d398292a6b165d8 /configure.ac
parentagent: Simplify printing of INQUIRE_MAXLEN. (diff)
downloadgnupg2-115a6ed55d1f6be33f66de6734359fa590ca3749.tar.xz
gnupg2-115a6ed55d1f6be33f66de6734359fa590ca3749.zip
Add replacement hack for Android's broken ttyname.
* configure.ac (HAVE_TTYNAME) [__ANDROID__]: Add hack.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac7
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index f008d23e7..47c6d1202 100644
--- a/configure.ac
+++ b/configure.ac
@@ -490,6 +490,13 @@ AH_BOTTOM([
# endif
#endif
+/* Hacks required for Android. */
+#ifdef __ANDROID__
+ /* ttyname is a stub in BIONIC, printing a FIXME warning. */
+# define ttyname broken_native_ttyname
+# undef HAVE_TTYNAME
+#endif /*__ANDROID__*/
+
/* Tell libgcrypt not to use its own libgpg-error implementation. */
#define USE_LIBGPG_ERROR 1