From 3996c5f0485fd5bfbf401da846f53cf32aa474a8 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Thu, 5 Jan 2006 17:59:32 +0000 Subject: [PATCH] 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 --- polyp/cpulimit.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/polyp/cpulimit.c b/polyp/cpulimit.c index 0fab98a..f121123 100644 --- a/polyp/cpulimit.c +++ b/polyp/cpulimit.c @@ -23,6 +23,8 @@ #include #endif +#ifdef HAVE_SIGXCPU + #include #include #include @@ -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 -- 2.7.4