Skip to content
Snippets Groups Projects
Commit a6f444b3 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 4585fc22
No related branches found
No related tags found
No related merge requests found
......@@ -427,7 +427,7 @@ int slurm_getaffinity(pid_t pid, size_t size, cpu_set_t *mask)
#ifdef __FreeBSD__
rval = cpuset_getaffinity(CPU_LEVEL_WHICH, CPU_WHICH_PID,
pid, size, mask);
#elif SCHED_GETAFFINITY_THREE_ARGS
#elif defined(SCHED_GETAFFINITY_THREE_ARGS)
rval = sched_getaffinity(pid, size, mask);
#else
rval = sched_getaffinity(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