mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-06 13:29:56 -05:00
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:
parent
4cde5073f0
commit
df1d34753f
1 changed files with 7 additions and 2 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue