aboutsummaryrefslogtreecommitdiffstats
path: root/m4/gnupg-ttyname.m4 (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix ttyname problem on Android.Werner Koch2012-10-241-0/+9
| | | | | | | | | | | | | | | * 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".
* Fix Solaris problems with ttyname_r.Werner Koch2012-01-191-30/+52
| | | | | | | | | | | | | * m4/gnupg-ttyname.m4: New. Based on ttyname_r from gnulib. * src/ttyname_r.c (_gpgme_ttyname_r): Rename from ttyname_r. Implement hacks required for Solaris and possible other non-fully Posix systems. * src/util.h: Include unistd.h. Redefine ttyname_r depending on REPLACE_TTYNAME_R and put it into the gpgme name space. -- Unfortunately we cant not use the ttyname_r replacement from gnulib because we want to keep GPGME LGPLv2+.
* Add ttyname_r check macro from gnulib.Werner Koch2012-01-191-0/+101
* m4/gnupg-ttyname.m4: New. Taken from current gnulib.