Use platform independent sleep.
authorPierre Ossman <ossman@cendio.se>
Mon, 11 Sep 2006 07:54:41 +0000 (07:54 +0000)
committerPierre Ossman <ossman@cendio.se>
Mon, 11 Sep 2006 07:54:41 +0000 (07:54 +0000)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1394 fefdeb5f-60dc-0310-8127-8f9354f1896f

src/tests/flist-test.c

index b040444..abc0659 100644 (file)
@@ -27,6 +27,7 @@
 #include <stdlib.h>
 #include <unistd.h>
 
 #include <stdlib.h>
 #include <unistd.h>
 
+#include <pulse/util.h>
 #include <pulse/xmalloc.h>
 #include <pulsecore/flist.h>
 #include <pulsecore/thread.h>
 #include <pulse/xmalloc.h>
 #include <pulsecore/flist.h>
 #include <pulsecore/thread.h>
@@ -92,7 +93,7 @@ int main(int argc, char* argv[]) {
         assert(threads[i]);
     }
 
         assert(threads[i]);
     }
 
-    sleep(60);
+    pa_msleep(60000);
     quit = 1;
 
     for (i = 0; i < THREADS_MAX; i++)
     quit = 1;
 
     for (i = 0; i < THREADS_MAX; i++)