Skip to content

Commit

Permalink
kconfig/nconf: fix compile with ncurses reentrant API
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Yaakov Selkowitz authored and Michal Marek committed Jul 4, 2012
1 parent f8f5701 commit d7c67a2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/kconfig/nconf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d7c67a2

Please sign in to comment.