fix: HAVE_SCHED_SETAFFINITY is not defined
[urcu.git] / tests / benchmark / test_mutex.c
index 8df767723ee31cd7bc789b5b709da3b869a10218..49a817ce45d4a11ca6a2adb27377feee903f88f8 100644 (file)
@@ -86,7 +86,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 */
@@ -94,7 +94,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.023295 seconds and 4 git commands to generate.