summaryrefslogtreecommitdiff
path: root/experimental/slurm/musl-getgrent.patch
diff options
context:
space:
mode:
Diffstat (limited to 'experimental/slurm/musl-getgrent.patch')
-rw-r--r--experimental/slurm/musl-getgrent.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/experimental/slurm/musl-getgrent.patch b/experimental/slurm/musl-getgrent.patch
new file mode 100644
index 000000000..b1c538758
--- /dev/null
+++ b/experimental/slurm/musl-getgrent.patch
@@ -0,0 +1,15 @@
+Source: @pullmoll
+Upstream: no
+Reason: Musl libc does not have getgrent_r(3)
+
+--- a/src/slurmctld/groups.c 2019-12-20 21:43:45.000000000 +0100
++++ b/src/slurmctld/groups.c 2020-02-23 12:23:19.570618716 +0100
+@@ -155,7 +155,7 @@
+ * databases), the rest of this function essentially does
+ * nothing. */
+
+-#if defined (__APPLE__)
++#if defined (__APPLE__) || !defined(__GLIBC__)
+ setgrent();
+ while (1) {
+ if ((grp_result = getgrent()) == NULL)