X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=tests%2Ftest_perthreadlock.c;h=47eaff6918faa324009888738c05900c98b86e04;hb=e7e6ff7f5b1a64ddd280652fea736c98f2e9fd41;hp=32204dc16ee95b7195d8a85d824ad7623afd094a;hpb=ab0aacbe1a25d50d069f0b24aa492e84ea296f57;p=urcu.git diff --git a/tests/test_perthreadlock.c b/tests/test_perthreadlock.c index 32204dc..47eaff6 100644 --- a/tests/test_perthreadlock.c +++ b/tests/test_perthreadlock.c @@ -118,9 +118,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;