NSIG is not defined by neither C99 nor POSIX so we can't rely on it.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1849 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
Pierre Ossman 2007-09-18 08:57:54 +00:00
parent 4cde5073f0
commit df1d34753f

View file

@ -627,9 +627,14 @@ PA_STATIC_TLS_DECLARE(signame, pa_xfree);
const char *pa_sig2str(int sig) {
char *t;
if (sig <= 0 || sig >= _NSIG)
if (sig <= 0)
goto fail;
#ifdef NSIG
if (sig >= NSIG)
goto fail;
#endif
#ifdef HAVE_SIG2STR
{
char buf[SIG2STR_MAX];