Created
January 21, 2021 18:44
-
-
Save ziyi-yan/8a26584a57ea9a043843a9cd0fcd52d4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 90a785462cef34259c04d51272e3ff47e4372f7c Mon Sep 17 00:00:00 2001 | |
From: Ziyi Yan <ziyi.yan@foxmail.com> | |
Date: Fri, 22 Jan 2021 02:32:26 +0800 | |
Subject: [PATCH] fix ncursesw and cursesw not found | |
This patch is based on https://github.com/zeha/qemu/commit/7f2fa31e11dd10b4436d1546a8afad52a41ab581.patch | |
--- | |
meson.build | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
diff --git a/meson.build b/meson.build | |
index e338619..f5ea9ee 100644 | |
--- a/meson.build | |
+++ b/meson.build | |
@@ -501,7 +501,7 @@ if have_system and not get_option('curses').disabled() | |
endforeach | |
msg = get_option('curses').enabled() ? 'curses library not found' : '' | |
if curses.found() | |
- if cc.links(curses_test, dependencies: [curses]) | |
+ if cc.links(curses_test, args: '-DNCURSES_WIDECHAR', dependencies: [curses]) | |
curses = declare_dependency(compile_args: '-DNCURSES_WIDECHAR', dependencies: [curses]) | |
else | |
msg = 'curses package not usable' | |
-- | |
2.24.3 (Apple Git-128) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment