need getpass function for netware, else unresolved symbol

This commit is contained in:
Doug MacEachern 2005-08-28 06:18:35 +00:00
parent 8fc1facb28
commit 249015c01f
1 changed files with 9 additions and 1 deletions

View File

@ -767,7 +767,15 @@ struct utmp {
long ut_addr;
};
#elif defined(NETWARE)
/*XXX*/
static char *getpass(const char *prompt)
{
static char password[BUFSIZ];
fputs(prompt, stderr);
fgets((char *)&password, sizeof(password), stdin);
return (char *)&password;
}
#else
# include <utmp.h>
# ifdef UTMP_FILE