fix: HAVE_SCHED_SETAFFINITY is not defined
[urcu.git] / tests / benchmark / test_urcu_wfq.c
index 09f7a0dff9ea8faf0ef2f939d183883b31484385..1b0e6c07cb696fac511c7ca723c0d7158632e86b 100644 (file)
@@ -83,7 +83,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 */
@@ -91,7 +91,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.023064 seconds and 4 git commands to generate.