Skip to content
Snippets Groups Projects
Commit b9659e88 authored by Jason Bacon's avatar Jason Bacon Committed by Morris Jette
Browse files

Correct #if logic

correct precompile directive to test for variable definition rather
than true value. Correction to commit 01b658a3
parent 01b658a3
No related branches found
No related tags found
No related merge requests found
...@@ -397,7 +397,7 @@ int slurm_setaffinity(pid_t pid, size_t size, const cpu_set_t *mask) ...@@ -397,7 +397,7 @@ int slurm_setaffinity(pid_t pid, size_t size, const cpu_set_t *mask)
#ifdef __FreeBSD__ #ifdef __FreeBSD__
rval = cpuset_setaffinity(CPU_LEVEL_WHICH, CPU_WHICH_PID, rval = cpuset_setaffinity(CPU_LEVEL_WHICH, CPU_WHICH_PID,
pid, size, mask); pid, size, mask);
#elif SCHED_GETAFFINITY_THREE_ARGS #elif defined(SCHED_GETAFFINITY_THREE_ARGS)
rval = sched_setaffinity(pid, size, mask); rval = sched_setaffinity(pid, size, mask);
#else #else
rval = sched_setaffinity(pid, mask); rval = sched_setaffinity(pid, mask);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment