X-Git-Url: https://git.lttng.org/?p=urcu.git;a=blobdiff_plain;f=tests%2Ftest_mutex.c;fp=tests%2Ftest_mutex.c;h=43d0dace7169d7d8e30ea502400cb2072d1721eb;hp=f7605343d9ad29e75f2dccf1c2134eb9768ec9e9;hb=95bc7fb90c36ee10dc171a23e8783eff30072b7b;hpb=6e3319a2481eea847224b53ce8c2bd1571b42bf8 diff --git a/tests/test_mutex.c b/tests/test_mutex.c index f760534..43d0dac 100644 --- a/tests/test_mutex.c +++ b/tests/test_mutex.c @@ -114,9 +114,10 @@ typedef unsigned long cpu_set_t; static void set_affinity(void) { +#if HAVE_SCHED_SETAFFINITY cpu_set_t mask; - int cpu; - int ret; + int cpu, ret; +#endif /* HAVE_SCHED_SETAFFINITY */ if (!use_affinity) return;