diff options
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 ) { |