Skip to content
Snippets Groups Projects
Commit c383b9b0 authored by Moe Jette's avatar Moe Jette
Browse files

Some tweaks for odd linux install

parent 45bb22b1
No related branches found
No related tags found
No related merge requests found
...@@ -165,7 +165,7 @@ int slurm_setaffinity(pid_t pid, size_t size, const cpu_set_t *mask) ...@@ -165,7 +165,7 @@ int slurm_setaffinity(pid_t pid, size_t size, const cpu_set_t *mask)
int rval; int rval;
char mstr[1 + CPU_SETSIZE / 4]; char mstr[1 + CPU_SETSIZE / 4];
#ifdef HAVE_SCHED_SETAFFINITY #ifdef 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);
......
...@@ -44,9 +44,9 @@ ...@@ -44,9 +44,9 @@
#include <string.h> #include <string.h>
#include <sys/utsname.h> #include <sys/utsname.h>
#define _GNU_SOURCE
#define __USE_GNU #define __USE_GNU
#include <sched.h> /* SMB */ #include <sched.h> /* SMB */
#undef __USE_GNU
#if HAVE_STDLIB_H #if HAVE_STDLIB_H
# include <stdlib.h> # include <stdlib.h>
......
...@@ -79,6 +79,8 @@ EXTRA_DIST = \ ...@@ -79,6 +79,8 @@ EXTRA_DIST = \
test1.87 \ test1.87 \
test1.88 \ test1.88 \
test1.88.prog.c \ test1.88.prog.c \
test1.89 \
test1.89.prog.c \
test2.1 \ test2.1 \
test2.2 \ test2.2 \
test2.3 \ test2.3 \
......
#define _GNU_SOURCE #define _GNU_SOURCE
#define __USE_GNU
#include <errno.h> #include <errno.h>
#include <sched.h> #include <sched.h>
#include <stdio.h> #include <stdio.h>
......
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