[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-commits] [qemu/qemu] b01a4f: configure: Define NCURSES_WIDECHAR if
From: |
GitHub |
Subject: |
[Qemu-commits] [qemu/qemu] b01a4f: configure: Define NCURSES_WIDECHAR if we're using ... |
Date: |
Mon, 26 Jun 2017 06:30:12 -0700 |
Branch: refs/heads/master
Home: https://github.com/qemu/qemu
Commit: b01a4fd3bd7d6f2ebd9eeba9cb6502d423c3bc85
https://github.com/qemu/qemu/commit/b01a4fd3bd7d6f2ebd9eeba9cb6502d423c3bc85
Author: Peter Maydell <address@hidden>
Date: 2017-06-26 (Mon, 26 Jun 2017)
Changed paths:
M configure
Log Message:
-----------
configure: Define NCURSES_WIDECHAR if we're using curses
We want the wide character functions from the ncurses header.
Unfortunately it doesn't provide them by default, but only
if either:
* NCURSES_WIDECHAR is defined (for ncurses 20111030 and up)
* _XOPEN_SOURCE/_XOPEN_SOURCE_EXTENDED are suitably defined
So far we have been implicitly relying on the latter, because
for GNU libc when we define _GNU_SOURCE this causes libc
to define the _XOPEN_SOURCE macros for us. Unfortunately
this doesn't work on all libcs, because some (like OSX and
musl libc) do not define _XOPEN_SOURCE when _GNU_SOURCE
is defined.
We can't fix this by defining _XOPEN_SOURCE ourselves, because
that also means "and don't provide any functions that aren't in
that standard", and not all libcs provide any way to override
that to also get the non-standard functions. In particular
FreeBSD has no such mechanism, and OSX's _DARWIN_C_SOURCE
doesn't reenable everything (for instance getpagesize()
is still not prototyped if _DARWIN_C_SOURCE and _XOPEN_SOURCE
are both defined).
So we have to define NCURSES_WIDECHAR. (This will only work
if your ncurses is at least 20111030, as older versions
don't honour this macro.)
Signed-off-by: Peter Maydell <address@hidden>
Acked-by: Laszlo Ersek <address@hidden>
Message-id: address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-commits] [qemu/qemu] b01a4f: configure: Define NCURSES_WIDECHAR if we're using ...,
GitHub <=