pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Attempt to patch gres.c for NetBSD
Module Name: pkgsrc-wip
Committed By: Jason Bacon <bacon4000%gmail.com@localhost>
Pushed By: outpaddling
Date: Fri May 13 21:11:13 2016 -0500
Changeset: 0f371fea061a167228fca3618b83092b53932575
Added Files:
slurm/patches/patch-src_common_gres.c
Log Message:
Attempt to patch gres.c for NetBSD
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=0f371fea061a167228fca3618b83092b53932575
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
slurm/patches/patch-src_common_gres.c | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diffs:
diff --git a/slurm/patches/patch-src_common_gres.c b/slurm/patches/patch-src_common_gres.c
new file mode 100644
index 0000000..9df1e61
--- /dev/null
+++ b/slurm/patches/patch-src_common_gres.c
@@ -0,0 +1,19 @@
+$NetBSD$
+
+--- gres.c.orig 2016-05-03 22:41:59.000000000 +0000
++++ gres.c
+@@ -79,6 +79,14 @@ typedef cpuset_t cpu_set_t;
+ #include <sys/stat.h>
+ #include <math.h>
+
++#ifdef __NetBSD__
++typedef cpuset_t cpu_set_t;
++#define CPU_ZERO(p) cpuset_zero((p))
++#define CPU_ISSET(i,c) cpuset_isset((i),(c))
++#define sched_getaffinity sched_getaffinity_np
++#define SCHED_GETAFFINITY_THREE_ARGS
++#endif
++
+ #include "slurm/slurm.h"
+ #include "slurm/slurm_errno.h"
+ #include "src/common/bitstring.h"
Home |
Main Index |
Thread Index |
Old Index