diff options
author | Werner Koch <wk@gnupg.org> | 2004-12-13 16:49:56 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2004-12-13 16:49:56 +0100 |
commit | 801ab885224b7d85aa11cb9f239f33cb420d3159 (patch) | |
tree | 692dfc401226c89d17e8dd3a84fb778fedb97207 /common | |
parent | Added real code written by Timo Schulz. (diff) | |
download | gnupg2-801ab885224b7d85aa11cb9f239f33cb420d3159.tar.xz gnupg2-801ab885224b7d85aa11cb9f239f33cb420d3159.zip |
VArious hacks to make it at least build under W32.
* stringhelp.c (w32_strerror) [W32]: New.
* w32-pth.c, w32-pth.h: Added real code written by Timo Schulz.
Not finished, though.
* gpgconf-comp.c <ignore-ocsp-service-url>: Fixed typo.
Diffstat (limited to 'common')
-rw-r--r-- | common/simple-pwquery.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/simple-pwquery.c b/common/simple-pwquery.c index fab6306fa..1e8eae63b 100644 --- a/common/simple-pwquery.c +++ b/common/simple-pwquery.c @@ -182,8 +182,10 @@ agent_send_all_options (int fd) } dft_ttyname = getenv ("GPG_TTY"); +#ifndef HAVE_W32_SYSTEM if ((!dft_ttyname || !*dft_ttyname) && ttyname (0)) dft_ttyname = ttyname (0); +#endif if (dft_ttyname && *dft_ttyname) { if ((rc=agent_send_option (fd, "ttyname", dft_ttyname))) |