git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@824
fefdeb5f-60dc-0310-8127-
8f9354f1896f
noinst_PROGRAMS = \
mainloop-test \
- thread-mainloop-test \
mcalign-test \
pacat-simple \
parec-simple \
mainloop-test-glib12
endif
+# FIXME: We need to make thread-mainloop win32-compatible first
+if !OS_IS_WIN32
+noinst_PROGRAMS += \
+ thread-mainloop-test
+endif
+
mainloop_test_SOURCES = tests/mainloop-test.c
mainloop_test_CFLAGS = $(AM_CFLAGS)
mainloop_test_LDADD = $(AM_LDADD) libpolyp-@PA_MAJORMINOR@.la
#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;
return pa_mainloop_get_api(m->real_mainloop);
}
+#else /* OS_IS_WIN32 */
+
+// FIXME: Use Win32 primitives
+
+#endif /* OS_IS_WIN32 */