work-around for cygwin32
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1202 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -831,6 +831,9 @@ process_rings(netin, netout, netex, ttyin, ttyout, poll)
|
||||
if (netex) {
|
||||
FD_SET(net, &xbits);
|
||||
}
|
||||
#ifdef __CYGWIN32__
|
||||
FD_SET(tout, &obits);
|
||||
#endif
|
||||
if ((c = select(16, &ibits, &obits, &xbits,
|
||||
(poll == 0)? (struct timeval *)0 : &TimeValue)) < 0) {
|
||||
if (c == -1) {
|
||||
|
@@ -232,7 +232,9 @@ static int read_pw(buf, buff, size, prompt, verify)
|
||||
FILE *tty=NULL;
|
||||
char *p;
|
||||
|
||||
#ifndef MSDOS
|
||||
#ifdef __CYGWIN32__
|
||||
tty = stdin;
|
||||
#elif !defined(MSDOS)
|
||||
if ((tty=fopen("/dev/tty","r")) == NULL)
|
||||
tty=stdin;
|
||||
#else /* MSDOS */
|
||||
|
Reference in New Issue
Block a user