util-linux: fix musl build (__SWORD_TYPE undefined).
This commit is contained in:
parent
a1900a1118
commit
96d5b611eb
2 changed files with 21 additions and 1 deletions
20
srcpkgs/util-linux/patches/fix-musl.patch
Normal file
20
srcpkgs/util-linux/patches/fix-musl.patch
Normal file
|
@ -0,0 +1,20 @@
|
|||
Define __SWORD_TYPE for musl.
|
||||
|
||||
--- sys-utils/switch_root.c.orig 2014-09-20 21:33:27.551345526 +0200
|
||||
+++ sys-utils/switch_root.c 2014-09-20 21:34:17.958584374 +0200
|
||||
@@ -47,6 +47,15 @@
|
||||
#define MNT_DETACH 0x00000002 /* Just detach from the tree */
|
||||
#endif
|
||||
|
||||
+#ifndef __SWORD_TYPE
|
||||
+# if __WORDSIZE == 32 /* System word size */
|
||||
+# define __SWORD_TYPE int
|
||||
+# else /* __WORDSIZE == 64 */
|
||||
+# define __SWORD_TYPE long int
|
||||
+# endif
|
||||
+#endif
|
||||
+
|
||||
+
|
||||
/* remove all files/directories below dirName -- don't cross mountpoints */
|
||||
static int recursiveRemove(int fd)
|
||||
{
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'util-linux'
|
||||
pkgname=util-linux
|
||||
version=2.25.1
|
||||
revision=1
|
||||
revision=2
|
||||
short_desc="Miscellaneous linux utilities"
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
homepage="http://userweb.kernel.org/~kzak/util-linux-ng"
|
||||
|
|
Loading…
Reference in a new issue