Received: from eggs.gnu.org ([2001:4830:134:3::10]:38630) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dH648-0006Ot-H1 for qemu-devel@nongnu.org; Sat, 03 Jun 2017 06:13:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dH645-0006Mj-CL for qemu-devel@nongnu.org; Sat, 03 Jun 2017 06:13:52 -0400 Received: from donkey.codingfarm.de ([5.9.138.198]:43102) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dH645-0006M7-5B for qemu-devel@nongnu.org; Sat, 03 Jun 2017 06:13:49 -0400 References: <1496414138-7622-1-git-send-email-peter.maydell@linaro.org> From: =?UTF-8?Q?Rainer_M=c3=bcller?= Message-ID: Date: Sat, 3 Jun 2017 12:13:59 +0200 MIME-Version: 1.0 In-Reply-To: <1496414138-7622-1-git-send-email-peter.maydell@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] configure: Define NCURSES_WIDECHAR if we're using curses List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell , qemu-devel@nongnu.org Cc: patches@linaro.org, Chad Joan , Paolo Bonzini , Laszlo Ersek On 2017-06-02 16:35, Peter Maydell wrote: > diff --git a/configure b/configure > index 0586ec9..6aca5d1 100755 > --- a/configure > +++ b/configure > @@ -3053,6 +3053,8 @@ int main(void) { > EOF > IFS=: > for curses_inc in $curses_inc_list; do > + # Make sure we get the wide character prototypes > + curses_inc="-DNCURSES_WIDECHAR $curses_inc" > IFS=: > for curses_lib in $curses_lib_list; do > unset IFS > Thank you for getting back to this. I can confirm that this patch fixes --enable-curses for me on Mac OS X. Although this already works as is, I would use -DNCURSES_WIDECHAR=1 as ncurses.h uses #if and not #ifdef to check for this. Rainer