From df1d34753fd906eb5fce53d5639c45e6d3ee0a89 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Tue, 18 Sep 2007 08:57:54 +0000 Subject: 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 --- src/pulsecore/core-util.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/pulsecore') diff --git a/src/pulsecore/core-util.c b/src/pulsecore/core-util.c index aac7629e..6a0bd0ac 100644 --- a/src/pulsecore/core-util.c +++ b/src/pulsecore/core-util.c @@ -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]; -- cgit