Skip to contentSkip to conversation

kconfig/nconf: fix compile with ncurses reentrant API

PATCH New Yaakov (Cygwin/X) 1 participant 1 message Jun 12, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kconfig/nconf: fix compile with ncurses reentrant API

From: Yaakov Selkowitz <[email protected]>

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

---
 scripts/kconfig/nconf.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
scripts/kconfig/nconf.c +4 -0
index 73070cb..eb9b87a 100644
@@ -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);
Signature · 1 line
1.7.9