diff --git a/src/tests/interpol-test.c b/src/tests/interpol-test.c index 3ec8a18f7..54bdd7750 100644 --- a/src/tests/interpol-test.c +++ b/src/tests/interpol-test.c @@ -33,17 +33,11 @@ #include #include -#ifdef HAVE_PTHREAD -#include -#endif - -#ifdef HAVE_WINDOWS_H -#include -#endif - #include #include +#include + static pa_context *context = NULL; static pa_stream *stream = NULL; static pa_mainloop_api *mainloop_api = NULL; @@ -152,13 +146,7 @@ int main(int argc, char *argv[]) { tv = now; while (pa_timeval_diff(pa_gettimeofday(&now), &tv) < 1000) -#ifdef HAVE_PTHREAD_YIELD - pthread_yield(); -#elif defined(OS_IS_WIN32) - Sleep(0); -#else - ; -#endif + pa_thread_yield(); } if (m)