fix: HAVE_SCHED_SETAFFINITY is not defined
[userspace-rcu.git] / tests / benchmark / test_urcu_wfs.c
index 5d90ad600f749c7d3e28da82d1479cb5e6534337..992070bdd1612f0b657b1ec4489b8f5237fff42d 100644 (file)
@@ -94,7 +94,7 @@ pthread_mutex_t affinity_mutex = PTHREAD_MUTEX_INITIALIZER;
 
 static void set_affinity(void)
 {
-#if HAVE_SCHED_SETAFFINITY
+#ifdef HAVE_SCHED_SETAFFINITY
        cpu_set_t mask;
        int cpu, ret;
 #endif /* HAVE_SCHED_SETAFFINITY */
@@ -102,7 +102,7 @@ static void set_affinity(void)
        if (!use_affinity)
                return;
 
-#if HAVE_SCHED_SETAFFINITY
+#ifdef HAVE_SCHED_SETAFFINITY
        ret = pthread_mutex_lock(&affinity_mutex);
        if (ret) {
                perror("Error in pthread mutex lock");
This page took 0.022447 seconds and 4 git commands to generate.