build-sys: fix check for pthread_setaffinity_np()

This commit is contained in:
Lennart Poettering 2010-02-21 20:11:23 +01:00
parent 2b2149dc9d
commit 323f0ad403
2 changed files with 2 additions and 1 deletions

View file

@ -36,7 +36,6 @@ static pa_once once = PA_ONCE_INIT;
static volatile unsigned n_run = 0;
static const char * volatile ran_by = NULL;
static pthread_barrier_t barrier;
static pa_atomic_t i_cpu = PA_ATOMIC_INIT(0);
static unsigned n_cpu;
#define N_ITERATIONS 500
@ -51,6 +50,7 @@ static void thread_func(void *data) {
int r;
#ifdef HAVE_PTHREAD_SETAFFINITY_NP
static pa_atomic_t i_cpu = PA_ATOMIC_INIT(0);
cpu_set_t mask;
CPU_ZERO(&mask);