diff options
author | Bodo Möller <bodo@openssl.org> | 2001-06-11 17:21:33 +0200 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2001-06-11 17:21:33 +0200 |
commit | 508f15cdabe9c66db694efb24028cc38b9bee261 (patch) | |
tree | 3aa6bdf593b64891c008a82931a7ac52aa8c801c /crypto/ui/ui_openssl.c | |
parent | Get rid of "possible WAW dependency" warnings. (diff) | |
download | openssl-508f15cdabe9c66db694efb24028cc38b9bee261.tar.xz openssl-508f15cdabe9c66db694efb24028cc38b9bee261.zip |
For MSDOS, the tty filename still is "con", not "/dev/tty" ...
Diffstat (limited to '')
-rw-r--r-- | crypto/ui/ui_openssl.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/crypto/ui/ui_openssl.c b/crypto/ui/ui_openssl.c index 63dc3713e4..bb66291ad5 100644 --- a/crypto/ui/ui_openssl.c +++ b/crypto/ui/ui_openssl.c @@ -436,9 +436,14 @@ static int open_console(UI *ui) tty_in=stdin; tty_out=stderr; #else - if ((tty_in=fopen("/dev/tty","r")) == NULL) +# ifdef OPENSSL_SYS_MSDOS +# define DEV_TTY "con" +# else +# define DEV_TTY "/dev/tty" +# endif + if ((tty_in=fopen(DEV_TTY,"r")) == NULL) tty_in=stdin; - if ((tty_out=fopen("/dev/tty","w")) == NULL) + if ((tty_out=fopen(DEV_TTY,"w")) == NULL) tty_out=stderr; #endif |