fix: HAVE_SCHED_SETAFFINITY is not defined
[userspace-rcu.git] / tests / benchmark / test_urcu_assign.c
index 9a0f266bec2dfaaef40032196b588ff2f75d3941..2c74e8548f23ad35505714d4bab7a5c32a9071ec 100644 (file)
@@ -85,7 +85,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 */
@@ -93,7 +93,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.030312 seconds and 4 git commands to generate.