From 249015c01f594609637eb2a9910963f4c05cac8b Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Sun, 28 Aug 2005 06:18:35 +0000 Subject: [PATCH] need getpass function for netware, else unresolved symbol --- src/sigar.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/sigar.c b/src/sigar.c index 4101576a..349e07a9 100644 --- a/src/sigar.c +++ b/src/sigar.c @@ -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 # ifdef UTMP_FILE