MacOS changes.
This commit is contained in:
parent
fd73a2121c
commit
991f0706d8
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user