2005-10-08 Marcus Brinkmann <marcus@g10code.de>

* signal.c (get_signal_name): Check value of HAVE_DECL_SYS_SIGLIST
	instead of just if it is defined.
This commit is contained in:
Marcus Brinkmann 2005-10-07 23:46:36 +00:00
parent d7a1e30b30
commit 84b22283d9
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2005-10-08 Marcus Brinkmann <marcus@g10code.de>
* signal.c (get_signal_name): Check value of HAVE_DECL_SYS_SIGLIST
instead of just if it is defined.
2005-09-28 Marcus Brinkmann <marcus@g10code.de>
* Makefile.am (AM_CFLAGS): Add $(LIBASSUAN_CFLAGS).

View File

@ -76,7 +76,7 @@ get_signal_name( int signum )
{
/* Note that we can't use strsignal(), because it is not
reentrant. */
#if defined(HAVE_DECL_SYS_SIGLIST) && defined(NSIG)
#if HAVE_DECL_SYS_SIGLIST && defined(NSIG)
return (signum >= 0 && signum < NSIG) ? sys_siglist[signum] : "?";
#else
return NULL;