From 7c939e7a1b163ab5a754ba6592067be14ed9158c Mon Sep 17 00:00:00 2001 From: Justin Lecher Date: Sun, 9 Jul 2017 15:50:58 +0100 Subject: sys-cluster/slurm: Fix compilation error with glibc-2.25 Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=617192 Package-Manager: Portage-2.3.6, Repoman-2.3.2 Signed-off-by: Justin Lecher --- .../slurm/files/slurm-16.05.2-sysmacros.patch | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 sys-cluster/slurm/files/slurm-16.05.2-sysmacros.patch (limited to 'sys-cluster/slurm/files') diff --git a/sys-cluster/slurm/files/slurm-16.05.2-sysmacros.patch b/sys-cluster/slurm/files/slurm-16.05.2-sysmacros.patch new file mode 100644 index 000000000000..f9d22f479f89 --- /dev/null +++ b/sys-cluster/slurm/files/slurm-16.05.2-sysmacros.patch @@ -0,0 +1,34 @@ + configure.ac | 2 +- + src/plugins/task/cgroup/task_cgroup_devices.c | 6 ++++++ + 2 files changed, 7 insertions(+), 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index 869a989..2936983 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -141,7 +141,7 @@ AC_CHECK_HEADERS(mcheck.h values.h socket.h sys/socket.h \ + AC_HEADER_SYS_WAIT + AC_HEADER_TIME + AC_HEADER_STDC +- ++AC_HEADER_MAJOR + + dnl Checks for structures. + dnl +diff --git a/src/plugins/task/cgroup/task_cgroup_devices.c b/src/plugins/task/cgroup/task_cgroup_devices.c +index 554583c..9be99d8 100644 +--- a/src/plugins/task/cgroup/task_cgroup_devices.c ++++ b/src/plugins/task/cgroup/task_cgroup_devices.c +@@ -42,6 +42,12 @@ + #include + #include + #include ++#ifdef MAJOR_IN_MKDEV ++# include ++#endif ++#ifdef MAJOR_IN_SYSMACROS ++# include ++#endif + #include + #include + #include -- cgit v1.2.3-65-gdbad