[pulseaudio-commits] r1927 - /branches/lennart/src/pulsecore/rtsig.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Wed Oct 3 07:46:37 PDT 2007


Author: ossman
Date: Wed Oct  3 16:46:36 2007
New Revision: 1927

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=1927&root=pulseaudio&view=rev
Log:
Add stubs when RT signals aren't available.

Modified:
    branches/lennart/src/pulsecore/rtsig.c

Modified: branches/lennart/src/pulsecore/rtsig.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/lennart/src/pulsecore/rtsig.c?rev=1927&root=pulseaudio&r1=1926&r2=1927&view=diff
==============================================================================
--- branches/lennart/src/pulsecore/rtsig.c (original)
+++ branches/lennart/src/pulsecore/rtsig.c Wed Oct  3 16:46:36 2007
@@ -35,6 +35,8 @@
 #include <pulsecore/core-util.h>
 
 #include "rtsig.h"
+
+#ifdef SIGRTMIN
 
 static void _free_rtsig(void *p) {
     pa_rtsig_put(PA_PTR_TO_INT(p));
@@ -111,3 +113,21 @@
     /* We allocate starting from the end */
     pa_atomic_store(&rtsig_current, rtsig_end);
 }
+
+#else /* SIGRTMIN */
+
+int pa_rtsig_get(void) {
+    return -1;
+}
+
+int pa_rtsig_get_for_thread(void) {
+    return -1;
+}
+
+void pa_rtsig_put(int sig) {
+}
+
+void pa_rtsig_configure(int start, int end) {
+}
+
+#endif /* SIGRTMIN */




More information about the pulseaudio-commits mailing list