mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Drop support for getting signal descriptions from sys_siglist[].
It appears that all platforms that have sys_siglist[] also have strsignal(), making that fallback case in pg_strsignal() dead code. Getting rid of it allows dropping a configure test, which seems worth more than providing textual signal descriptions on whatever platforms might still hypothetically have use for the fallback case. Discussion: https://postgr.es/m/25758.1544983503@sss.pgh.pa.us
This commit is contained in:
@ -1787,14 +1787,6 @@ if test "$PORTNAME" = "cygwin"; then
|
||||
AC_LIBOBJ(dirmod)
|
||||
fi
|
||||
|
||||
AC_CHECK_DECLS([sys_siglist], [], [],
|
||||
[#include <signal.h>
|
||||
/* NetBSD declares sys_siglist in unistd.h. */
|
||||
#ifdef HAVE_UNISTD_H
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
])
|
||||
|
||||
AC_CHECK_FUNC(syslog,
|
||||
[AC_CHECK_HEADER(syslog.h,
|
||||
[AC_DEFINE(HAVE_SYSLOG, 1, [Define to 1 if you have the syslog interface.])])])
|
||||
|
Reference in New Issue
Block a user