termux-packages/packages/mc/lib-widget-input_complete.c...

20 lines
602 B
Diff
Raw Normal View History

2016-05-21 23:19:42 +02:00
diff -u -r ../mc-4.8.17/lib/widget/input_complete.c ./lib/widget/input_complete.c
--- ../mc-4.8.17/lib/widget/input_complete.c 2016-05-07 11:42:52.000000000 -0400
+++ ./lib/widget/input_complete.c 2016-05-21 17:03:05.409602557 -0400
@@ -313,6 +313,7 @@
2015-11-21 00:04:00 +01:00
static char *
username_completion_function (const char *text, int state, input_complete_t flags)
{
+#ifndef __ANDROID__
2016-05-21 23:19:42 +02:00
static struct passwd *entry = NULL;
static size_t userlen = 0;
2015-11-21 00:04:00 +01:00
2016-05-21 23:19:42 +02:00
@@ -340,6 +341,7 @@
2015-11-21 00:04:00 +01:00
return g_strconcat ("~", entry->pw_name, PATH_SEP_STR, (char *) NULL);
endpwent ();
+#endif
return NULL;
}