Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/unix/getpass.c')
-rw-r--r--newlib/libc/unix/getpass.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/newlib/libc/unix/getpass.c b/newlib/libc/unix/getpass.c
index b45df074f..db0e52d61 100644
--- a/newlib/libc/unix/getpass.c
+++ b/newlib/libc/unix/getpass.c
@@ -42,6 +42,14 @@ static char sccsid[] = "@(#)getpass.c 5.9 (Berkeley) 5/6/91";
#include <sys/signal.h>
#include <_syslist.h>
+#ifndef _PATH_PASSWD
+#define _PATH_PASSWD "/etc/passwd"
+#endif
+
+#ifndef _PASSWORD_LEN
+#define _PASSWORD_LEN 128 /* max length, not counting NULL */
+#endif
+
char *
getpass (prompt)
const char *prompt;