systemd: add missing patch for Musl

For context, see https://github.com/systemd/systemd/issues/35755.
Musl defines fork and setsid only if unistd.h is included.
This commit is contained in:
FliegendeWurst
2025-02-03 20:38:38 +01:00
committed by Alyssa Ross
parent efd9e47912
commit eb3431789c
@@ -17,6 +17,7 @@
getent,
glibcLocales,
autoPatchelfHook,
fetchpatch,
# glib is only used during tests (test-bus-gvariant, test-bus-marshal)
glib,
@@ -281,6 +282,14 @@ stdenv.mkDerivation (finalAttrs: {
"0025-adjust-header-inclusion-order-to-avoid-redeclaration.patch"
"0026-build-path.c-avoid-boot-time-segfault-for-musl.patch"
]
++ [
# add a missing include
(fetchpatch {
url = "https://github.com/systemd/systemd/commit/34fcd3638817060c79e1186b370e46d9b3a7409f.patch";
hash = "sha256-Uaewo3jPrZGJttlLcqO6cCj1w3IGZmvbur4+TBdIPxc=";
excludes = [ "src/udev/udevd.c" ];
})
]
);
postPatch =