commit: 9b48daaacbdf059637baf745eb30dbe71adaa1cf
parent: 6325ed2e606e1ec16c3bb6f0e0cd8e65d1a53602
author: Brian Callahan <bcallah@openbsd.org>
date: Mon, 21 Feb 2022 12:53:35 -0500
Add ncurses includes selection like emacs.c has.
1 file changed, 8 insertions(+)
diff --git a/vi.c b/vi.c
@@ -15,8 +15,16 @@
#include <stdlib.h>
#include <string.h>
#if !defined(SMALL) && !defined(NO_CURSES)
+#ifdef HAVE_CURSES
# include <term.h>
# include <curses.h>
+#elif defined(HAVE_NCURSES)
+# include <term.h>
+# include <ncurses.h>
+#elif defined(HAVE_NCURSESNCURSES)
+# include <ncurses/term.h>
+# include <ncurses/ncurses.h>
+#endif
#endif
#include "sh.h"