Skip to content

Commit

Permalink
Define _getch() and use the same getpass() implementation as Win32
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63683 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Bradley Nicholes committed Jul 15, 2002
1 parent 89e82c1 commit e82d1e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions include/arch/netware/apr_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions passwd/apr_getpass.c
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down

0 comments on commit e82d1e4

Please sign in to comment.