need getpass function for netware, else unresolved symbol
This commit is contained in:
1 parent
8fc1facb28
commit
249015c01f
1 file changed
+9
-1
+9
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user