blob: c80737b1946fece46fdf35e3c3be19d790c2f99f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
--- src/tests/rtstutter.c.orig 2009-07-23 15:40:47.000000000 +0200
+++ src/tests/rtstutter.c 2009-11-24 16:26:36.000000000 +0100
@@ -31,6 +31,11 @@
#include <string.h>
#include <pthread.h>
+#ifdef HAVE_PTHREAD_SETAFFINITY_NP
+#include <sys/param.h>
+#include <sys/cpuset.h>
+#endif
+
#include <pulse/timeval.h>
#include <pulse/gccmacro.h>
@@ -44,8 +49,12 @@
static void* work(void *p) {
#ifdef HAVE_PTHREAD_SETAFFINITY_NP
+#ifdef __FreeBSD__
+ cpuset_t mask;
+#else
cpu_set_t mask;
#endif
+#endif
struct sched_param param;
pa_log_notice("CPU%i: Created thread.", PA_PTR_TO_UINT(p));
|