fix: HAVE_SCHED_SETAFFINITY is not defined
[userspace-rcu.git] / tests / benchmark / test_urcu.c
index 84720870650b1a954513859172cdb580e7da673b..3f7bfdc7b87f6819eff121b36e3b332e7d96cf50 100644 (file)
@@ -81,7 +81,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 */
@@ -89,7 +89,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.022904 seconds and 4 git commands to generate.