need getpass function for netware, else unresolved symbol
This commit is contained in:
parent
8fc1facb28
commit
249015c01f
10
src/sigar.c
10
src/sigar.c
|
@ -767,7 +767,15 @@ struct utmp {
|
||||||
long ut_addr;
|
long ut_addr;
|
||||||
};
|
};
|
||||||
#elif defined(NETWARE)
|
#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
|
#else
|
||||||
# include <utmp.h>
|
# include <utmp.h>
|
||||||
# ifdef UTMP_FILE
|
# ifdef UTMP_FILE
|
||||||
|
|
Loading…
Reference in New Issue