utf8proc: Update from 2.1.0 to 2.1.1
[termux-packages] / packages / libedit / src-readline.c.patch
CommitLineData
0682917a
FF
1diff -u -r ../libedit-20170329-3.1/src/readline.c ./src/readline.c
2--- ../libedit-20170329-3.1/src/readline.c 2017-03-29 20:15:04.000000000 +0200
3+++ ./src/readline.c 2017-04-07 02:16:41.501547191 +0200
4@@ -1772,6 +1772,9 @@
5 char *
6 username_completion_function(const char *text, int state)
7 {
8+#ifdef __ANDROID__
9+ return NULL;
10+#else
11 struct passwd *pass = NULL;
12
13 if (text[0] == '\0')
14@@ -1794,6 +1797,7 @@
15 return NULL;
16 }
17 return strdup(pass->pw_name);
18+#endif
19 }
20
21