summaryrefslogtreecommitdiff
path: root/mc/mc-4.8.11-ncurses_build_fix.patch
blob: 1819d337d32256c3ff7f56b8228e0186c0ac0732 (plain)
    1 # http://www.midnight-commander.org/ticket/3114
    2 
    3 Index: lib/tty/key.c
    4 ===================================================================
    5 --- lib/tty/key.c	(revision 0ed4a91d7df4e50512defd2e0734ecab7c9da07f)
    6 +++ lib/tty/key.c	(revision d870aedad1907773f8586fe818a89e6b5178b849)
    7 @@ -1947,4 +1947,5 @@
    8  {
    9      int c;
   10 +    int flag = 0;               /* Return value from select */
   11  #ifdef HAVE_LIBGPM
   12      static struct Gpm_Event ev; /* Mouse event */
   13 @@ -1979,5 +1980,4 @@
   14      {
   15          int nfd;
   16 -        static int flag = 0;    /* Return value from select */
   17          fd_set select_set;
   18  
   19 Index: lib/tty/tty-ncurses.c
   20 ===================================================================
   21 --- lib/tty/tty-ncurses.c	(revision bb65b467900ea9eb1f7867c059fd26fac86c747c)
   22 +++ lib/tty/tty-ncurses.c	(revision d870aedad1907773f8586fe818a89e6b5178b849)
   23 @@ -50,4 +50,5 @@
   24  #include "tty.h"
   25  #include "color-internal.h"
   26 +#include "key.h"
   27  #include "mouse.h"
   28  #include "win.h"
   29 @@ -531,4 +532,5 @@
   30      {
   31          int res;
   32 +        unsigned char str[UTF8_CHAR_LEN + 1];
   33  
   34          res = g_unichar_to_utf8 (c, (char *) str);
   35 @@ -541,5 +543,4 @@
   36          else
   37          {
   38 -            unsigned char str[UTF8_CHAR_LEN + 1];
   39              const char *s;
   40  

Generated by cgit