Merge pull request #2436 from pullmoll/dracut

dracut: fix cross compiling for musl
This commit is contained in:
Jürgen Buchmüller 2015-09-02 14:20:36 +02:00
commit 46f2007a6f
2 changed files with 16 additions and 1 deletions

View 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>

View file

@ -1,7 +1,7 @@
# Template file for 'dracut'
pkgname=dracut
version=043
revision=8
revision=9
build_style=configure
configure_args="--prefix=/usr --sysconfdir=/etc"
hostmakedepends="libxslt docbook-xsl asciidoc"