diff options
author | Daniel Stenberg <daniel@haxx.se> | 2000-03-19 19:54:13 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2000-03-19 19:54:13 +0000 |
commit | ff3fd842d8338feb5277a0450991c882dd4d84b2 (patch) | |
tree | 4d5f3cdb72dec4a29d80ed521db99c00f491c56f /lib/getpass.c | |
parent | 35140201b5ad087e852444780eb8b322ee7749f0 (diff) |
Marco G. Salvagno's OS/2 fixes
Diffstat (limited to 'lib/getpass.c')
-rw-r--r-- | lib/getpass.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/getpass.c b/lib/getpass.c index c0c7bf97b..4a87145ab 100644 --- a/lib/getpass.c +++ b/lib/getpass.c @@ -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 ) { |