summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2006-01-05 17:59:32 +0000
committerPierre Ossman <ossman@cendio.se>2006-01-05 17:59:32 +0000
commit3996c5f0485fd5bfbf401da846f53cf32aa474a8 (patch)
treede5a821512555141d68cc6c16cf978c44ffb3c49
parent2ce05b2b4bda7933b419495e715c41909c3adf7e (diff)
SIXCPU isn't present on all platforms. Replace cpulimit with dummy functions
on those systems. git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@371 fefdeb5f-60dc-0310-8127-8f9354f1896f
-rw-r--r--polyp/cpulimit.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/polyp/cpulimit.c b/polyp/cpulimit.c
index 0fab98a0..f121123f 100644
--- a/polyp/cpulimit.c
+++ b/polyp/cpulimit.c
@@ -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