Marco G. Salvagno's OS/2 fixes

This commit is contained in:
Daniel Stenberg
2000-03-19 19:54:13 +00:00
parent 35140201b5
commit ff3fd842d8
3 changed files with 35 additions and 2 deletions

View File

@@ -76,7 +76,9 @@ char *getpass(const char *prompt)
FILE *outfp;
static char buf[INPUT_BUFFER];
RETSIGTYPE (*sigint)();
#ifndef __EMX__
RETSIGTYPE (*sigtstp)();
#endif
size_t bytes_read;
int infd;
int outfd;
@@ -92,7 +94,11 @@ char *getpass(const char *prompt)
#endif
sigint = signal(SIGINT, SIG_IGN);
/* 20000318 mgs
* this is needed by the emx system, SIGTSTP is not a supported signal */
#ifndef __EMX__
sigtstp = signal(SIGTSTP, SIG_IGN);
#endif
if( (infp=fopen("/dev/tty", "r")) == NULL )
{