summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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