diff options
author | Bradley Nicholes <bnicholes@apache.org> | 2002-07-15 20:16:17 +0000 |
---|---|---|
committer | Bradley Nicholes <bnicholes@apache.org> | 2002-07-15 20:16:17 +0000 |
commit | 7e8aa23751b67e27dad82d40a6362273b6f6f602 (patch) | |
tree | 4e6b8948ad9944c4c5596f8a0faad1fa44e5dcdd | |
parent | b09f6acd610ff01e7f446819456585a72aafcc53 (diff) | |
download | apr-7e8aa23751b67e27dad82d40a6362273b6f6f602.tar.gz |
Define _getch() and use the same getpass() implementation as Win32
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63683 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | include/arch/netware/apr_private.h | 1 | ||||
-rw-r--r-- | passwd/apr_getpass.c | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/include/arch/netware/apr_private.h b/include/arch/netware/apr_private.h index 29d396178..778ab5393 100644 --- a/include/arch/netware/apr_private.h +++ b/include/arch/netware/apr_private.h @@ -149,6 +149,7 @@ typedef void (Sigfunc)(int); #define strcasecmp(s1, s2) stricmp(s1, s2) #define Sleep(t) delay(t) #define lstat(a,b) stat(a,b) +#define _getch() getcharacter() #define SIZEOF_SHORT 2 #define SIZEOF_INT 4 diff --git a/passwd/apr_getpass.c b/passwd/apr_getpass.c index cf84b7f1d..a9fbcf233 100644 --- a/passwd/apr_getpass.c +++ b/passwd/apr_getpass.c @@ -104,9 +104,9 @@ #ifndef HAVE_GETPASS -/* MPE, Win32 and BeOS all lack a native getpass() */ +/* MPE, Win32, NetWare and BeOS all lack a native getpass() */ -#if !defined(HAVE_TERMIOS_H) && !defined(WIN32) +#if !defined(HAVE_TERMIOS_H) && !defined(WIN32) && !defined(NETWARE) /* * MPE lacks getpass() and a way to suppress stdin echo. So for now, just * issue the prompt and read the results with echo. (Ugh). |