Fix ttyname problem on Android.
authorWerner Koch <wk@gnupg.org>
Wed, 24 Oct 2012 14:44:34 +0000 (16:44 +0200)
committerWerner Koch <wk@gnupg.org>
Wed, 24 Oct 2012 14:44:34 +0000 (16:44 +0200)
commit12a0c93433a0b1d7e8019fc35a63476db39327fa
tree1eb1f8d10bac5f07d3e31c4aa58434e62de8935e
parentcc59b75b21516198b39a56950afbcec140d8ba48
Fix ttyname problem on Android.

* configure.ac: Define macro and conditional HAVE_ANDROID_SYSTEM.
* m4/gnupg-ttyname.m4: Force use of replacement on Android.
* src/ttyname_r.c: Ditto.
--

Android's bionic lib has no working ttyname_r() nor ttyname().  Using
them anyway will print

  FIX ME! implement ttyname_r() bionic/libc/bionic/stubs.c:466

Thus we force the use of our replacement code which simply return
"/dev/tty".
configure.ac
m4/gnupg-ttyname.m4
src/ttyname_r.c