Modernise autoconf checks for sys_siglist and strsignal.

git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@156 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
Kevin Easton
2012-02-17 12:30:55 +00:00
parent b7c216bcc6
commit e2ada61548
5 changed files with 235 additions and 84 deletions

View File

@@ -90,14 +90,14 @@ extern char *next_expr (char **, char);
* A nice array of the possible signals. Used by the coredump trapping
* routines and in the exec.c package.
*/
#if !defined(SYS_SIGLIST_DECLARED) && !defined(_SYS_SIGLIST_DECLARED) && !defined(__QNX__)
#if !HAVE_DECL_SYS_SIGLIST && !HAVE_DECL__SYS_SIGLIST && !defined(__QNX__)
#if defined(WINNT) || defined(__EMX__)
char *sys_siglist[] = { "ZERO", "SIGINT", "SIGKILL", "SIGPIPE", "SIGFPE",
"SIGHUP", "SIGTERM", "SIGSEGV", "SIGTSTP",
"SIGQUIT", "SIGTRAP", "SIGILL", "SIGEMT", "SIGALRM",
"SIGBUS", "SIGLOST", "SIGSTOP", "SIGABRT", "SIGUSR1",
"SIGUSR2", "SIGCHLD", "SIGTTOU", "SIGTTIN", "SIGCONT" };
#elif defined(__GLIBC__)
#elif HAVE_DECL_STRSIGNAL
#define USING_STRSIGNAL
/* use strsignal() from <string.h> */
#include <string.h>