texlive-bin: fix build failure for i686 and x86_64 (due to NDK r16?)
[termux-packages] / packages / mc / lib-widget-input_complete.c.patch
index 15d2d81..0adc434 100644 (file)
@@ -1,15 +1,15 @@
-diff -u -r ../mc-4.8.15/lib/widget/input_complete.c ./lib/widget/input_complete.c
---- ../mc-4.8.15/lib/widget/input_complete.c   2015-11-06 04:11:08.000000000 -0500
-+++ ./lib/widget/input_complete.c      2015-11-20 17:59:04.834778588 -0500
-@@ -306,6 +306,7 @@
+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 @@
  static char *
  username_completion_function (const char *text, int state, input_complete_t flags)
  {
 +#ifndef __ANDROID__
-     static struct passwd *entry;
-     static size_t userlen;
+     static struct passwd *entry = NULL;
+     static size_t userlen = 0;
  
-@@ -332,6 +333,7 @@
+@@ -340,6 +341,7 @@
          return g_strconcat ("~", entry->pw_name, PATH_SEP_STR, (char *) NULL);
  
      endpwent ();