git: 79fbd483787a - main - Fix ncurses bootstrap on macOS

Alex Richardson arichardson at FreeBSD.org
Mon Mar 1 13:23:05 UTC 2021


The branch main has been updated by arichardson:

URL: https://cgit.FreeBSD.org/src/commit/?id=79fbd483787a1b2d91d3bed231e6912270aa04c6

commit 79fbd483787a1b2d91d3bed231e6912270aa04c6
Author:     Alex Richardson <arichardson at FreeBSD.org>
AuthorDate: 2021-03-01 13:21:35 +0000
Commit:     Alex Richardson <arichardson at FreeBSD.org>
CommitDate: 2021-03-01 13:22:15 +0000

    Fix ncurses bootstrap on macOS
    
    Avoid including machine/console.h when bootstrapping on non-FreeBSD.
---
 lib/ncurses/ncurses/ncurses_cfg.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/ncurses/ncurses/ncurses_cfg.h b/lib/ncurses/ncurses/ncurses_cfg.h
index ca4ce6b5f32a..2217eabd3580 100644
--- a/lib/ncurses/ncurses/ncurses_cfg.h
+++ b/lib/ncurses/ncurses/ncurses_cfg.h
@@ -62,7 +62,9 @@
 #endif
 #define HAVE_LONG_FILE_NAMES 1
 #define MIXEDCASE_FILENAMES 1
+#ifdef __FreeBSD__
 #define USE_SYSMOUSE 1
+#endif
 #define TERMINFO_DIRS "/usr/share/terminfo:/usr/local/share/site-terminfo"
 #define TERMINFO "/usr/share/terminfo"
 #define HAVE_BIG_CORE 1


More information about the dev-commits-src-main mailing list