diff options
| author | Pierre Ossman <ossman@cendio.se> | 2007-09-18 08:57:54 +0000 | 
|---|---|---|
| committer | Pierre Ossman <ossman@cendio.se> | 2007-09-18 08:57:54 +0000 | 
| commit | df1d34753fd906eb5fce53d5639c45e6d3ee0a89 (patch) | |
| tree | ae95f42020394cb503c7dc528319ff68105d3fa8 /src/pulsecore/core-util.c | |
| parent | 4cde5073f034545dd9dc200efe5fe873760a55c0 (diff) | |
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
Diffstat (limited to 'src/pulsecore/core-util.c')
| -rw-r--r-- | src/pulsecore/core-util.c | 9 | 
1 files changed, 7 insertions, 2 deletions
| 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]; | 
