need getpass function for netware, else unresolved symbol

This commit is contained in:
Doug MacEachern committed 2005-08-28 06:18:35 +00:00
1 parent 8fc1facb28
commit 249015c01f
1 file changed
+9 -1
+9 -1
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