qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] meson.build: Support ncurses on MacOS


From: Stefan Weil
Subject: Re: [PATCH] meson.build: Support ncurses on MacOS
Date: Sun, 13 Jun 2021 08:33:18 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.11.0

Am 13.06.21 um 03:40 schrieb Brad Smith:

This same problem also applies to OpenBSD as we have the same
version of ncurses with support for wide characters. I have a similar
patch in our QEMU port.


Then we should either extend the conditional statement to handle OpenBSD as well, or simply define both macros unconditionally:

    # Newer versions of curses use NCURSES_WIDECHAR.
    # Older versions (e. g. on MacOS, OpenBSD) still require _XOPEN_SOURCE_EXTENDED.     curses_compile_args = ['-DNCURSES_WIDECHAR=1', '-D_XOPEN_SOURCE_EXTENDED=1']

Defining only _XOPEN_SOURCE_EXTENDED would also work with old and new versions, so that's another option.

Stefan





reply via email to

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