All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Weil <sw@weilnetz.de>
To: Andrzej Zaborowski <balrogg@gmail.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] configure: don't try to compile against known	broken curses.
Date: Wed, 07 Dec 2011 19:57:29 +0100	[thread overview]
Message-ID: <4EDFB719.7060904@weilnetz.de> (raw)
In-Reply-To: <1323244048-6021-1-git-send-email-balrogg@gmail.com>

Am 07.12.2011 08:47, schrieb Andrzej Zaborowski:
> This should resolve a problem noted by Caraman Mihai Claudiu.
>
> Signed-off-by: Andrzej Zaborowski <andrew.zaborowski@intel.com>
> ---
> configure | 5 +++++
> 1 files changed, 5 insertions(+), 0 deletions(-)
>
> diff --git a/configure b/configure
> index 61c43b9..678b982 100755
> --- a/configure
> +++ b/configure
> @@ -1846,6 +1846,11 @@ if test "$curses" != "no" ; then
> #ifdef __OpenBSD__
> #define resize_term resizeterm
> #endif
> +#ifdef NCURSES_VERSION
> +# if NCURSES_VERSION_PATCH < 20040117
> +# error Old ncurses contain dangerous typedefs, break qemu build (and 
> are old)
> +# endif
> +#endif
> int main(void) { resize_term(0, 0); return curses_version(); }
> EOF
> for curses_lib in $curses_list; do

Is NCURSES_VERSION_PATCH always defined when NCURSES_VERSION is?
If not, code like the following is more robust:

#if !defined(NCURSES_VERSION_PATCH) || NCURSES_VERSION_PATCH < 20040117
# error Old ncurses contain dangerous typedefs, break qemu build (and 
are old)
#endif

Otherwise the patch is good.

Reviewed-by: Stefan Weil <sw@weilnetz.de>

  parent reply	other threads:[~2011-12-07 18:58 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-07  7:47 [Qemu-devel] [PATCH] configure: don't try to compile against known broken curses Andrzej Zaborowski
2011-12-07  7:47 ` [Qemu-devel] [PATCH 1/2] configure: don't check for Cocoa when detecting SDL Andrzej Zaborowski
2011-12-07 21:26   ` Andreas Färber
2011-12-07  7:47 ` [Qemu-devel] [PATCH 2/2] configure: remove --enable-cocoa (default), add --disable-cocoa Andrzej Zaborowski
2011-12-07 18:56   ` Peter Maydell
2011-12-08  0:49     ` andrzej zaborowski
2011-12-07 21:12   ` Andreas Färber
2011-12-07 21:21     ` Peter Maydell
2011-12-08 23:35       ` Andreas Färber
2011-12-09  1:25     ` andrzej zaborowski
2011-12-09  1:41       ` andrzej zaborowski
2011-12-07 18:57 ` Stefan Weil [this message]
2011-12-07 19:06   ` [Qemu-devel] [PATCH] configure: don't try to compile against known broken curses andrzej zaborowski
2011-12-07 19:51     ` Stefan Weil
2011-12-14 21:58     ` andrzej zaborowski

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=4EDFB719.7060904@weilnetz.de \
    --to=sw@weilnetz.de \
    --cc=balrogg@gmail.com \
    --cc=qemu-devel@nongnu.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.