On Wed, Nov 17, 2021 at 09:53:55PM +0100, Stefan Weil wrote: > MacOS provides header files for curses 5.7 with support > for wide characters, but requires _XOPEN_SOURCE_EXTENDED=1 > to activate that. > > By default those old header files are used even if there > is a newer Homebrew installation of ncurses 6.2 available. > > Change also the old macro definition of NCURSES_WIDECHAR > and set it to 1 like it is done in newer versions of > curses.h when _XOPEN_SOURCE_EXTENDED=1 is defined. > > OpenBSD has the same version of ncurses and needs the same fix. > > Suggested-by: Daniel P. Berrangé <[email protected]> > Signed-off-by: Stefan Weil <[email protected]> > --- > > v2: > - Only define _XOPEN_SOURCE_EXTENDED when curses.h is used. > - Extended to fix OpenBSD, too (untested!) > > meson.build | 5 ++++- > ui/curses.c | 4 ++++ > 2 files changed, 8 insertions(+), 1 deletion(-)
Reviewed-by: Daniel P. Berrangé <[email protected]> Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
