mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
Windows doesn't have POSIX thread. ifdef out things for now.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@824 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
9e60bad5c3
commit
1438bd49dc
2 changed files with 23 additions and 3 deletions
|
|
@ -23,17 +23,27 @@
|
|||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#include <pthread.h>
|
||||
#include <assert.h>
|
||||
#include <signal.h>
|
||||
#include <sys/poll.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#ifdef HAVE_SYS_POLL_H
|
||||
#include <sys/poll.h>
|
||||
#else
|
||||
#include "../polypcore/poll.h"
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_PTHREAD
|
||||
#include <pthread.h>
|
||||
#endif
|
||||
|
||||
#include <polypcore/xmalloc.h>
|
||||
|
||||
#include "mainloop.h"
|
||||
#include "thread-mainloop.h"
|
||||
|
||||
#ifndef OS_IS_WIN32
|
||||
|
||||
struct pa_threaded_mainloop {
|
||||
pa_mainloop *real_mainloop;
|
||||
pthread_t thread_id;
|
||||
|
|
@ -201,3 +211,8 @@ pa_mainloop_api* pa_threaded_mainloop_get_api(pa_threaded_mainloop*m) {
|
|||
return pa_mainloop_get_api(m->real_mainloop);
|
||||
}
|
||||
|
||||
#else /* OS_IS_WIN32 */
|
||||
|
||||
// FIXME: Use Win32 primitives
|
||||
|
||||
#endif /* OS_IS_WIN32 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue