]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
more: fix compilation
authorYang Kun <91833768+ikspress@users.noreply.github.com>
Tue, 3 Sep 2024 14:38:57 +0000 (22:38 +0800)
committerYang Kun <91833768+ikspress@users.noreply.github.com>
Wed, 4 Sep 2024 13:39:38 +0000 (21:39 +0800)
configure.ac
text-utils/more.c

index b5748b9a93eed7f268ef35db857740cc584d3851..0ca2ebcf77247552a30fcccb532be1c52e5ae4ec 100644 (file)
@@ -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])
 
 
index 953e94db10ea063ec44d593eb1de049fc36f1408..da26fdbc248e4136f9bcc743e3dc43e87067ac8d 100644 (file)
@@ -57,7 +57,6 @@
 #include <sys/ioctl.h>
 #include <sys/stat.h>
 #include <sys/file.h>
-#include <sys/ttydefaults.h>
 #include <sys/wait.h>
 #include <regex.h>
 #include <assert.h>
 #include <paths.h>
 #include <getopt.h>
 
+#ifdef HAVE_SYS_TTYDEFAULTS_H
+# include <sys/ttydefaults.h>
+#endif
+
 #if defined(HAVE_NCURSESW_TERM_H)
 # include <ncursesw/term.h>
 #elif defined(HAVE_NCURSES_TERM_H)