[pulseaudio-commits] r1849 - /branches/lennart/src/pulsecore/core-util.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Tue Sep 18 01:57:55 PDT 2007


Author: ossman
Date: Tue Sep 18 10:57:54 2007
New Revision: 1849

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=1849&root=pulseaudio&view=rev
Log:
NSIG is not defined by neither C99 nor POSIX so we can't rely on it.

Modified:
    branches/lennart/src/pulsecore/core-util.c

Modified: branches/lennart/src/pulsecore/core-util.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/lennart/src/pulsecore/core-util.c?rev=1849&root=pulseaudio&r1=1848&r2=1849&view=diff
==============================================================================
--- branches/lennart/src/pulsecore/core-util.c (original)
+++ branches/lennart/src/pulsecore/core-util.c Tue Sep 18 10:57:54 2007
@@ -627,9 +627,14 @@
 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];




More information about the pulseaudio-commits mailing list