fix: HAVE_SCHED_SETAFFINITY is not defined
[userspace-rcu.git] / tests / benchmark / test_urcu_hash.c
index 297e0c0913721fd0add3e81a7052b5d45565d7b4..a8a79e3fcb45bf9b8c73060ee0ce98c615fb9cf5 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.023483 seconds and 4 git commands to generate.