void-packages/srcpkgs/slurm-wlm/patches/musl-getgrent.patch
Jürgen Buchmüller 8a40c5bab4 slurm-wlm: fix musl
2020-02-23 13:15:10 +01:00

15 lines
447 B
Diff

Source: @pullmoll
Upstream: no
Reason: Musl libc does not have getgrent_r(3)
--- src/slurmctld/groups.c 2019-12-20 21:43:45.000000000 +0100
+++ 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)