Fix Solaris problems with ttyname_r.
authorWerner Koch <wk@gnupg.org>
Thu, 19 Jan 2012 17:43:10 +0000 (18:43 +0100)
committerWerner Koch <wk@gnupg.org>
Thu, 19 Jan 2012 17:43:10 +0000 (18:43 +0100)
commit2f304957f5122a5d9da643dc9951ee67ece06eaf
tree28480421eea8cc5b8be21873015d0e910edf67b8
parentc96778297f5477448a676fcf0c61044bdbccc86d
Fix Solaris problems with ttyname_r.

* 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+.
configure.ac
m4/gnupg-ttyname.m4
src/ttyname_r.c
src/util.h