diff options
author | Pierre Ossman <ossman@cendio.se> | 2006-06-20 13:49:30 +0000 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2006-06-20 13:49:30 +0000 |
commit | 6ca46f4d7a9fa57b949e2286d3af1b6e78dce8f5 (patch) | |
tree | ecffe9394028fe5c8d5d06fba5a3e08c7c3cce76 /src/tests | |
parent | 3ff68bd7a57186c6c6def975be3fc7e826c8bbcd (diff) |
Make interpol-test build on Win32 and non-pthread systems.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1043 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/interpol-test.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/tests/interpol-test.c b/src/tests/interpol-test.c index 7cabc1c9..bf7f582c 100644 --- a/src/tests/interpol-test.c +++ b/src/tests/interpol-test.c @@ -32,7 +32,10 @@ #include <stdlib.h> #include <getopt.h> #include <math.h> + +#ifdef HAVE_PTHREAD #include <pthread.h> +#endif #include <pulse/pulseaudio.h> #include <pulse/mainloop.h> @@ -145,7 +148,13 @@ int main(int argc, char *argv[]) { tv = now; while (pa_timeval_diff(pa_gettimeofday(&now), &tv) < 1000) +#ifdef HAVE_PTHREAD pthread_yield(); +#elif defined(OS_IS_WIN32) + Sleep(0); +#else + ; +#endif } if (m) |