dracut: fix cross compiling for musl

This commit is contained in:
Jürgen Buchmüller 2015-09-02 09:13:00 +02:00
parent 2234e5ae98
commit b9c02f0b77
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"