mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-08 13:29:59 -05:00
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
This commit is contained in:
parent
2ce05b2b4b
commit
3996c5f048
1 changed files with 15 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue