From 75bf3c00d302b2edbd4d714465e65eb7931cf0ef Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 30 Aug 2023 06:51:18 -0700 Subject: [PATCH] kill: rely on Gnulib strsignal Omit checks no longer needed now that we use strsignal. * configure.ac: Do not check for strsignal-related decls. * src/kill.c (sys_siglist, strsignal): Remove. --- configure.ac | 5 ----- src/kill.c | 18 ------------------ 2 files changed, 23 deletions(-) diff --git a/configure.ac b/configure.ac index 8ffc0b7ceb..2c7cdeef62 100644 --- a/configure.ac +++ b/configure.ac @@ -471,11 +471,6 @@ if test $gl_cv_sys_tiocgwinsz_needs_termios_h = no && \ [Define if your system defines TIOCGWINSZ in sys/pty.h.]) fi -# For src/kill.c. -AC_CHECK_DECLS([strsignal, sys_siglist, _sys_siglist, __sys_siglist], , , - [AC_INCLUDES_DEFAULT -#include ]) - # Build df only if there's a point to it. if test $gl_cv_list_mounted_fs = yes && test $gl_cv_fs_space = yes; then gl_ADD_PROG([optional_bin_progs], [df]) diff --git a/src/kill.c b/src/kill.c index 47aaa16132..7eb5ef57a9 100644 --- a/src/kill.c +++ b/src/kill.c @@ -33,24 +33,6 @@ #define AUTHORS proper_name ("Paul Eggert") -#if ! (HAVE_DECL_STRSIGNAL || defined strsignal) -# if ! (HAVE_DECL_SYS_SIGLIST || defined sys_siglist) -# if HAVE_DECL__SYS_SIGLIST || defined _sys_siglist -# define sys_siglist _sys_siglist -# elif HAVE_DECL___SYS_SIGLIST || defined __sys_siglist -# define sys_siglist __sys_siglist -# endif -# endif -# if HAVE_DECL_SYS_SIGLIST || defined sys_siglist -# define strsignal(signum) (0 <= (signum) && (signum) <= SIGNUM_BOUND \ - ? sys_siglist[signum] \ - : 0) -# endif -# ifndef strsignal -# define strsignal(signum) 0 -# endif -#endif - static char const short_options[] = "0::1::2::3::4::5::6::7::8::9::" "A::B::C::D::E::F::G::H::I::J::K::M::" -- 2.47.2