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:
Assar Westerlund
1997-02-01 17:54:00 +00:00
parent e60914acca
commit 13f126aa06
2 changed files with 6 additions and 1 deletions

View File

@@ -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) {

View File

@@ -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 */