From 83efe3463293de6a79c35bf33e5bdc4764fa35a8 Mon Sep 17 00:00:00 2001 From: Yang Kun <91833768+ikspress@users.noreply.github.com> Date: Tue, 3 Sep 2024 22:38:57 +0800 Subject: [PATCH] more: fix compilation --- configure.ac | 2 +- text-utils/more.c | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index b5748b9a9..0ca2ebcf7 100644 --- a/configure.ac +++ b/configure.ac @@ -2501,7 +2501,7 @@ AC_ARG_ENABLE([more], ) UL_BUILD_INIT([more]) UL_REQUIRES_HAVE([more], [ncursesw, ncurses], [ncursesw or ncurses libraries]) -UL_REQUIRES_LINUX([more]) +UL_REQUIRES_HAVE([more], [sys_signalfd_h], [sys/signalfd.h header]) AM_CONDITIONAL([BUILD_MORE], [test "x$build_more" = xyes]) diff --git a/text-utils/more.c b/text-utils/more.c index 953e94db1..da26fdbc2 100644 --- a/text-utils/more.c +++ b/text-utils/more.c @@ -57,7 +57,6 @@ #include #include #include -#include #include #include #include @@ -66,6 +65,10 @@ #include #include +#ifdef HAVE_SYS_TTYDEFAULTS_H +# include +#endif + #if defined(HAVE_NCURSESW_TERM_H) # include #elif defined(HAVE_NCURSES_TERM_H) -- 2.47.3