diff options
author | Ulf Möller <ulf@openssl.org> | 2000-05-15 18:59:55 +0000 |
---|---|---|
committer | Ulf Möller <ulf@openssl.org> | 2000-05-15 18:59:55 +0000 |
commit | 991f0706d874c15fed9fd9e6490c4ecb89ae3cf6 (patch) | |
tree | dacc761468443bf8fcc2e44a09e6130b70a65d7e /crypto/des | |
parent | fd73a2121ced27ecf1491246b98c07b8e20dc005 (diff) |
MacOS changes.
Diffstat (limited to 'crypto/des')
-rw-r--r-- | crypto/des/read_pwd.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/crypto/des/read_pwd.c b/crypto/des/read_pwd.c index fa2d67da64..789493f0c9 100644 --- a/crypto/des/read_pwd.c +++ b/crypto/des/read_pwd.c @@ -265,13 +265,15 @@ int des_read_pw(char *buf, char *buff, int size, const char *prompt, is_a_tty=1; tty=NULL; -#ifndef MSDOS - if ((tty=fopen("/dev/tty","r")) == NULL) - tty=stdin; -#else /* MSDOS */ +#ifdef MSDOS if ((tty=fopen("con","r")) == NULL) tty=stdin; -#endif /* MSDOS */ +#elif defined(MAC_OS_pre_X) + tty=stdin; +#else + if ((tty=fopen("/dev/tty","r")) == NULL) + tty=stdin; +#endif #if defined(TTY_get) && !defined(VMS) if (TTY_get(fileno(tty),&tty_orig) == -1) |