fix: HAVE_SCHED_SETAFFINITY is not defined
[urcu.git] / tests / benchmark / test_urcu_hash.c
index 2313a88e6ac29bcd91b88a04ba60f80d2fc21e4a..8838bc097130b065faeddaf78ec3fefa16c6092d 100644 (file)
@@ -140,7 +140,7 @@ static pthread_mutex_t rcu_copy_mutex = PTHREAD_MUTEX_INITIALIZER;
 
 void set_affinity(void)
 {
-#if HAVE_SCHED_SETAFFINITY
+#ifdef HAVE_SCHED_SETAFFINITY
        cpu_set_t mask;
        int cpu, ret;
 #endif /* HAVE_SCHED_SETAFFINITY */
@@ -148,7 +148,7 @@ 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.022797 seconds and 4 git commands to generate.