Merge pull request #2436 from pullmoll/dracut
dracut: fix cross compiling for musl
This commit is contained in:
commit
46f2007a6f
2 changed files with 16 additions and 1 deletions
15
srcpkgs/dracut/patches/musl-__wordsize.patch
Normal file
15
srcpkgs/dracut/patches/musl-__wordsize.patch
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
For musl libc it is required to include <sys/reg.h> to
|
||||||
|
have __WORDSIZE defined to e.g. 32 for arm*-musl.
|
||||||
|
|
||||||
|
--- install/util.h 2015-06-15 12:27:21.000000000 +0200
|
||||||
|
+++ 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>
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'dracut'
|
# Template file for 'dracut'
|
||||||
pkgname=dracut
|
pkgname=dracut
|
||||||
version=043
|
version=043
|
||||||
revision=8
|
revision=9
|
||||||
build_style=configure
|
build_style=configure
|
||||||
configure_args="--prefix=/usr --sysconfdir=/etc"
|
configure_args="--prefix=/usr --sysconfdir=/etc"
|
||||||
hostmakedepends="libxslt docbook-xsl asciidoc"
|
hostmakedepends="libxslt docbook-xsl asciidoc"
|
||||||
|
|
Loading…
Reference in a new issue