summaryrefslogtreecommitdiff
path: root/passwd
diff options
context:
space:
mode:
authorwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2002-02-12 21:59:01 +0000
committerwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2002-02-12 21:59:01 +0000
commit9f8072aebf624c96d362aecfefadcedbef9173bb (patch)
tree364f0b98df34e61da373da2f8213185b25fe3325 /passwd
parent9e86614ac937e8ec6bf403674445921f720fa90e (diff)
downloadlibapr-9f8072aebf624c96d362aecfefadcedbef9173bb.tar.gz
More safe header exclusions from Mladen Turk <mturk@mappingsoft.com>
for the WinCE port. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62968 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'passwd')
-rw-r--r--passwd/apr_getpass.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/passwd/apr_getpass.c b/passwd/apr_getpass.c
index c6dfb5c5b..588724cef 100644
--- a/passwd/apr_getpass.c
+++ b/passwd/apr_getpass.c
@@ -61,8 +61,12 @@
#include "apr_strings.h"
#include "apr_lib.h"
#include "apr_errno.h"
+#if APR_HAVE_SYS_TYPES_H
#include <sys/types.h>
+#endif
+#if APR_HAVE_ERRNO_H
#include <errno.h>
+#endif
#if APR_HAVE_UNISTD_H
#include <unistd.h>
@@ -165,6 +169,13 @@ static char *getpass(const char *prompt)
static char *getpass(const char *prompt)
{
+/* WCE lacks console. So the getpass is unsuported
+ * The only way is to use the GUI so the getpass should be implemented
+ * on per-application basis.
+*/
+#ifdef _WIN32_WCE
+ return NULL;
+#else
static char password[MAX_STRING_LEN];
int n = 0;
@@ -190,6 +201,7 @@ static char *getpass(const char *prompt)
}
return (char *) &password;
+#endif
}
#endif /* no getchar or _getch */