diff options
Diffstat (limited to 'text-utils/ul.c')
-rw-r--r-- | text-utils/ul.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/text-utils/ul.c b/text-utils/ul.c index 178d5cb7f..3d1518cea 100644 --- a/text-utils/ul.c +++ b/text-utils/ul.c @@ -43,13 +43,20 @@ #include <stdio.h> #include <unistd.h> /* for getopt(), isatty() */ #include <string.h> /* for memset(), strcpy() */ -#include <term.h> /* for setupterm() */ #include <stdlib.h> /* for getenv() */ #include <limits.h> /* for INT_MAX */ #include <signal.h> /* for signal() */ #include <errno.h> #include <getopt.h> +#ifdef HAVE_TERM_H +# include <term.h> +#elif defined(HAVE_NCURSES_TERM_H) +# include <ncurses/term.h> +#elif defined(HAVE_NCURSESW_TERM_H) +# include <ncursesw/term.h> +#endif + #include "nls.h" #include "xalloc.h" #include "widechar.h" |