bnicholes 2002/07/15 13:16:17
Modified: include/arch/netware apr_private.h
passwd apr_getpass.c
Log:
Define _getch() and use the same getpass() implementation as Win32
Revision Changes Path
1.11 +1 -0 apr/include/arch/netware/apr_private.h
Index: apr_private.h
===================================================================
RCS file: /home/cvs/apr/include/arch/netware/apr_private.h,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- apr_private.h 26 Jun 2002 22:01:02 -0000 1.10
+++ apr_private.h 15 Jul 2002 20:16:17 -0000 1.11
@@ -149,6 +149,7 @@
#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
1.22 +2 -2 apr/passwd/apr_getpass.c
Index: apr_getpass.c
===================================================================
RCS file: /home/cvs/apr/passwd/apr_getpass.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- apr_getpass.c 10 Jul 2002 06:01:13 -0000 1.21
+++ apr_getpass.c 15 Jul 2002 20:16:17 -0000 1.22
@@ -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).