SIXCPU isn't present on all platforms. Replace cpulimit with dummy functions
authorPierre Ossman <ossman@cendio.se>
Thu, 5 Jan 2006 17:59:32 +0000 (17:59 +0000)
committerPierre Ossman <ossman@cendio.se>
Thu, 5 Jan 2006 17:59:32 +0000 (17:59 +0000)
on those systems.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@371 fefdeb5f-60dc-0310-8127-8f9354f1896f

polyp/cpulimit.c

index 0fab98a..f121123 100644 (file)
@@ -23,6 +23,8 @@
 #include <config.h>
 #endif
 
+#ifdef HAVE_SIGXCPU
+
 #include <errno.h>
 #include <stdio.h>
 #include <string.h>
@@ -219,3 +221,16 @@ void pa_cpu_limit_done(void) {
         installed = 0;
     }
 }
+
+#else /* HAVE_SIGXCPU */
+
+struct pa_mainloop_api;
+
+int pa_cpu_limit_init(struct pa_mainloop_api *m) {
+    return 0;
+}
+
+void pa_cpu_limit_done(void) {
+}
+
+#endif