History

kconfig/nconf: fix compile with ncurses reentrant API

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

Yaakov Selkowitz committed 14 years ago

Commit d7c67a21 parent f8f57011 file · +4 −0Browse files

Unified · Split

scripts/kconfig/nconf.c+4−0
@@ -1503,7 +1503,11 @@ int main(int ac, char **av) · 1502 unmodified lines
1503 }1503 }
1504 1504
1505 notimeout(stdscr, FALSE);1505 notimeout(stdscr, FALSE);
1506#if NCURSES_REENTRANT
1507 set_escdelay(1);
1508#else
1506 ESCDELAY = 1;1509 ESCDELAY = 1;
1510#endif
1507 1511
1508 /* set btns menu */1512 /* set btns menu */
1509 curses_menu = new_menu(curses_menu_items);1513 curses_menu = new_menu(curses_menu_items);