qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] configure: Fix curses probe for older ncurses


From: Brad Smith
Subject: [Qemu-devel] [PATCH] configure: Fix curses probe for older ncurses
Date: Sun, 26 Nov 2017 16:13:57 -0500
User-agent: Mutt/1.9.1 (2017-09-22)

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 <address@hidden>


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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]