aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowitz@users.sourceforge.net>2012-06-11 20:29:41 -0400
committerMichal Marek <mmarek@suse.cz>2012-07-04 12:23:48 -0400
commitd7c67a2e93334f7d290ba5fc2b2129b9d8ecd84f (patch)
tree4f4e778d103d4832c9dafa8c7f19111a39b76b2c /scripts
parentf8f5701bdaf9134b1f90e5044a82c66324d2073f (diff)
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>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/kconfig/nconf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/kconfig/nconf.c b/scripts/kconfig/nconf.c
index 8c0eb65978c9..d945de5c43ac 100644
--- a/scripts/kconfig/nconf.c
+++ b/scripts/kconfig/nconf.c
@@ -1503,7 +1503,11 @@ int main(int ac, char **av)
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);