diff options
author | Gunter Knauf <gk@gknw.de> | 2007-04-14 16:38:13 +0000 |
---|---|---|
committer | Gunter Knauf <gk@gknw.de> | 2007-04-14 16:38:13 +0000 |
commit | c60b52ab430093650ca6e7e7b43d5e072bccbe62 (patch) | |
tree | 47b3134b007d7e28c881479321fb31f7cfe2afd8 /src/getpass.c | |
parent | 71a0d50f48ea6b03cbd76c776f5ffbc0bb0ba30b (diff) | |
download | curl-c60b52ab430093650ca6e7e7b43d5e072bccbe62.tar.gz |
use system-own getpassword() function on NetWare.
Diffstat (limited to 'src/getpass.c')
-rw-r--r-- | src/getpass.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/getpass.c b/src/getpass.c index 6db1e8477..0fb575ea7 100644 --- a/src/getpass.c +++ b/src/getpass.c @@ -124,6 +124,16 @@ char *getpass_r(const char *prompt, char *buffer, size_t buflen) #define DONE #endif /* WIN32 */ +#ifdef NETWARE +/* NetWare implementation */ +#include <screen.h> +char *getpass_r(const char *prompt, char *buffer, size_t buflen) +{ + return(getpassword(prompt, buffer, buflen)); +} +#define DONE +#endif /* WIN32 */ + #ifndef DONE /* not previously provided */ #ifdef HAVE_TERMIOS_H |