Home GnuPG
Diffusion GPGME 12a0c93433a0

Fix ttyname problem on Android.
12a0c93433a0Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

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".

Details

Provenance
wernerAuthored on Oct 24 2012, 4:44 PM
Parents
rMcc59b75b2151: tests: Adhere to the docs and call gpgme_check_version.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rM12a0c93433a0: Fix ttyname problem on Android. (authored by Werner Koch <wk@gnupg.org>).Oct 24 2012, 4:44 PM