include curses.h when needed

This commit is contained in:
Ailin Nemui 2025-04-08 07:42:10 +02:00
commit 7bac5eb762
3 changed files with 31 additions and 4 deletions

View file

@ -13,6 +13,9 @@ inline static int term_putchar(int c)
}
#ifdef HAVE_TERM_H
#ifdef NEED_CURSES_H
#include <curses.h>
#endif
#include <term.h>
#else
/* Don't bother including curses.h because of these -