You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
825 B
35 lines
825 B
diff -u -r ../emacs-24.3/lib-src/pop.c ./lib-src/pop.c
|
|
--- ../emacs-24.3/lib-src/pop.c 2013-01-01 21:37:17.000000000 +0100
|
|
+++ ./lib-src/pop.c 2014-02-19 02:54:30.000000000 +0100
|
|
@@ -63,6 +63,7 @@
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
#include <unistd.h>
|
|
+#include <stdbool.h>
|
|
|
|
#ifdef KERBEROS
|
|
# ifdef HAVE_KRB5_H
|
|
@@ -126,6 +127,23 @@
|
|
char pop_error[ERROR_MAX];
|
|
int pop_debug = 0;
|
|
|
|
+#ifdef __ANDROID__
|
|
+static char* getpass(const char* prompt) {
|
|
+ printf("%s\n", prompt);
|
|
+ static char chars[128];
|
|
+ int len = 0;
|
|
+ while (true) {
|
|
+ char c = fgetc(stdin);
|
|
+ if (c == '\r' || c == '\n' || c == 0) break;
|
|
+ chars[len++] = c;
|
|
+ if (len == sizeof(chars)-1) break;
|
|
+ }
|
|
+ chars[len] = 0;
|
|
+ return chars;
|
|
+}
|
|
+#endif
|
|
+
|
|
+
|
|
/*
|
|
* Function: pop_open (char *host, char *username, char *password,
|
|
* int flags)
|
|
|