void-packages/srcpkgs/dracut/patches/musl-__wordsize.patch
classabbyamp a08280974a Revert "dracut: update to 056."
This reverts commit 7def67b23c.

dracut 056 causes a regression in live images because the
network-manager hook depends on the systemd hook now
(void-linux/void-mklive#296)
2022-11-21 03:45:33 -05:00

15 lines
426 B
Diff

For musl libc it is required to include <sys/reg.h> to
have __WORDSIZE defined to e.g. 32 for arm*-musl.
--- a/install/util.h 2015-06-15 12:27:21.000000000 +0200
+++ b/install/util.h 2015-09-02 09:07:57.321104222 +0200
@@ -33,6 +33,9 @@
#include <signal.h>
#include <sched.h>
#include <limits.h>
+#if !defined(__GLIBC__)
+#include <sys/reg.h>
+#endif
#include <sys/stat.h>
#include <dirent.h>
#include <sys/resource.h>