Make sure we do not use pthread_yield() on platforms that do not have them.
authorPierre Ossman <ossman@cendio.se>
Tue, 20 Jun 2006 14:26:52 +0000 (14:26 +0000)
committerPierre Ossman <ossman@cendio.se>
Tue, 20 Jun 2006 14:26:52 +0000 (14:26 +0000)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1045 fefdeb5f-60dc-0310-8127-8f9354f1896f

src/tests/interpol-test.c

index bf7f582..2df65a4 100644 (file)
@@ -148,7 +148,7 @@ int main(int argc, char *argv[]) {
 
         tv = now;
         while (pa_timeval_diff(pa_gettimeofday(&now), &tv) < 1000)
-#ifdef HAVE_PTHREAD
+#ifdef HAVE_PTHREAD_YIELD
             pthread_yield();
 #elif defined(OS_IS_WIN32)
             Sleep(0);