X-Git-Url: https://git.lttng.org/?p=urcu.git;a=blobdiff_plain;f=tests%2Ftest_urcu_wfq.c;h=b3f03b9d680f9946193283d0eaec451a4c50922b;hp=0116d5f6fd2edcc86eec781dbf40e5b19bcd44c0;hb=95bc7fb90c36ee10dc171a23e8783eff30072b7b;hpb=6e3319a2481eea847224b53ce8c2bd1571b42bf8 diff --git a/tests/test_urcu_wfq.c b/tests/test_urcu_wfq.c index 0116d5f..b3f03b9 100644 --- a/tests/test_urcu_wfq.c +++ b/tests/test_urcu_wfq.c @@ -105,9 +105,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;