public inbox for linux-kbuild@vger.kernel.org
 help / color / mirror / Atom feed
From: "Yaakov (Cygwin/X)" <yselkowitz@users.sourceforge.net>
To: Michal Marek <mmarek@suse.cz>
Cc: linux-kbuild@vger.kernel.org
Subject: [PATCH] kconfig/nconf: fix compile with ncurses reentrant API
Date: Mon, 11 Jun 2012 19:29:41 -0500	[thread overview]
Message-ID: <1339460981-7568-1-git-send-email-yselkowitz@users.sourceforge.net> (raw)

From: Yaakov Selkowitz <yselkowitz@users.sourceforge.net>

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>
---
 scripts/kconfig/nconf.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/scripts/kconfig/nconf.c b/scripts/kconfig/nconf.c
index 73070cb..eb9b87a 100644
--- a/scripts/kconfig/nconf.c
+++ b/scripts/kconfig/nconf.c
@@ -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);
-- 
1.7.9


         reply	other threads:[~2012-06-12  0:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-13  0:05 [PATCH] kconfig: fix check-lxdialog for DLL platforms Yaakov (Cygwin/X)
2012-06-13  0:05 ` [PATCH] kconfig: check ncursesw headers first in check-lxdialog Yaakov (Cygwin/X)
2012-06-12  0:29   ` Yaakov (Cygwin/X) [this message]
2012-07-04 16:32     ` [PATCH] kconfig/nconf: fix compile with ncurses reentrant API Michal Marek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1339460981-7568-1-git-send-email-yselkowitz@users.sourceforge.net \
    --to=yselkowitz@users.sourceforge.net \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=mmarek@suse.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox