Skip to content

Commit d7c67a2

Browse files
Yaakov Selkowitzmichal42
authored andcommitted
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 Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net> Signed-off-by: Michal Marek <mmarek@suse.cz>
1 parent f8f5701 commit d7c67a2

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎scripts/kconfig/nconf.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1503,7 +1503,11 @@ int main(int ac, char **av)
15031503
}
15041504

15051505
notimeout(stdscr, FALSE);
1506+
#if NCURSES_REENTRANT
1507+
set_escdelay(1);
1508+
#else
15061509
ESCDELAY = 1;
1510+
#endif
15071511

15081512
/* set btns menu */
15091513
curses_menu = new_menu(curses_menu_items);

0 commit comments

Comments
 (0)