All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] configure: Fix curses probe for older ncurses
@ 2017-11-26 21:13 Brad Smith
  2017-11-27 12:02 ` Peter Maydell
  2017-12-11 16:50 ` Peter Maydell
  0 siblings, 2 replies; 7+ messages in thread
From: Brad Smith @ 2017-11-26 21:13 UTC (permalink / raw)
  To: qemu-devel

Fix the curses probe with older ncurses (.e.g. 5.7, as used by OpenBSD).

ncurses 5.7 requires _XOPEN_SOURCE_EXTENDED to be defined for WACS_* constants.

Signed-off-by: Brad Smith <brad@comstyle.com>


diff --git a/configure b/configure
index 0c6e7572db..9715b9c2cc 100755
--- a/configure
+++ b/configure
@@ -3186,7 +3186,7 @@ EOF
   IFS=:
   for curses_inc in $curses_inc_list; do
     # Make sure we get the wide character prototypes
-    curses_inc="-DNCURSES_WIDECHAR $curses_inc"
+    curses_inc="-DNCURSES_WIDECHAR -D_XOPEN_SOURCE_EXTENDED $curses_inc"
     IFS=:
     for curses_lib in $curses_lib_list; do
       unset IFS

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-12-11 16:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-26 21:13 [Qemu-devel] [PATCH] configure: Fix curses probe for older ncurses Brad Smith
2017-11-27 12:02 ` Peter Maydell
2017-11-27 13:52   ` Brad Smith
2017-11-27 14:36     ` Peter Maydell
2017-11-27 23:29   ` Brad Smith
2017-11-28  2:59   ` Fam Zheng
2017-12-11 16:50 ` Peter Maydell

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.