projects
/
platform
/
upstream
/
pulseaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ff68bd
)
Make interpol-test build on Win32 and non-pthread systems.
author
Pierre Ossman
<ossman@cendio.se>
Tue, 20 Jun 2006 13:49:30 +0000
(13:49 +0000)
committer
Pierre Ossman
<ossman@cendio.se>
Tue, 20 Jun 2006 13:49:30 +0000
(13:49 +0000)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1043
fefdeb5f
-60dc-0310-8127-
8f9354f1896f
src/tests/interpol-test.c
patch
|
blob
|
history
diff --git
a/src/tests/interpol-test.c
b/src/tests/interpol-test.c
index
7cabc1c
..
bf7f582
100644
(file)
--- 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)