mc: multple fixes (#2367)
[termux-packages] / packages / mc / lib-widget-input_complete.c.patch
CommitLineData
f4147b42
FF
1diff -u -r ../mc-4.8.17/lib/widget/input_complete.c ./lib/widget/input_complete.c
2--- ../mc-4.8.17/lib/widget/input_complete.c 2016-05-07 11:42:52.000000000 -0400
3+++ ./lib/widget/input_complete.c 2016-05-21 17:03:05.409602557 -0400
4@@ -313,6 +313,7 @@
be47d1af
FF
5 static char *
6 username_completion_function (const char *text, int state, input_complete_t flags)
7 {
8+#ifndef __ANDROID__
f4147b42
FF
9 static struct passwd *entry = NULL;
10 static size_t userlen = 0;
be47d1af 11
f4147b42 12@@ -340,6 +341,7 @@
be47d1af
FF
13 return g_strconcat ("~", entry->pw_name, PATH_SEP_STR, (char *) NULL);
14
15 endpwent ();
16+#endif
17 return NULL;
18 }
19