kconfig/nconf: fix compile with ncurses reentrant API
authorYaakov Selkowitz <yselkowitz@users.sourceforge.net>
Tue, 12 Jun 2012 00:29:41 +0000 (19:29 -0500)
committerMichal Marek <mmarek@suse.cz>
Wed, 4 Jul 2012 16:23:48 +0000 (18:23 +0200)
ESCDELAY is a global variable which is replaced by getter and setter
functions with NCURSES_REENTRANT.  This fixes the following error:

nconf.c: In function ‘main’:
nconf.c:1506:2: error: lvalue required as left operand of assignment

Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
Signed-off-by: Michal Marek <mmarek@suse.cz>
scripts/kconfig/nconf.c

index 8c0eb65978c95aecedb73a7e71c6c4d788fe2255..d945de5c43ac63c92eb03125e42f466951d0c2a7 100644 (file)
@@ -1503,7 +1503,11 @@ int main(int ac, char **av)
        }
 
        notimeout(stdscr, FALSE);
+#if NCURSES_REENTRANT
+       set_escdelay(1);
+#else
        ESCDELAY = 1;
+#endif
 
        /* set btns menu */
        curses_menu = new_menu(curses_menu_items);