fix: HAVE_SCHED_SETAFFINITY is not defined
[urcu.git] / tests / benchmark / test_urcu_lfq.c
index ff3585a11570218f20dead87a430db0e785f1dae..0d53a1f0cef5a011b9f3f498242c161385347f76 100644 (file)
@@ -79,7 +79,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 */
@@ -87,7 +87,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.02422 seconds and 4 git commands to generate.