summaryrefslogtreecommitdiffstats
path: root/package/parted
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-10-04 18:27:52 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-10-04 18:29:35 +0100
commit198f64f4671c80b012fedc8a4d7af6470fc190ea (patch)
tree5fbf0141a196c3da23d1dcbfe73407650e53b809 /package/parted
parent357cf46f9ac5b49897641c9f884cd96ccb8e6d51 (diff)
downloadbuildroot-198f64f4671c80b012fedc8a4d7af6470fc190ea.tar.gz
buildroot-198f64f4671c80b012fedc8a4d7af6470fc190ea.zip
parted: add patch to fix musl build
Fixes: http://autobuild.buildroot.org/results/e1b/e1b6de7b234f2ec154d772ee93e33275dff38f3e/ Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/parted')
-rw-r--r--package/parted/0004-fix-includes-for-musl.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/package/parted/0004-fix-includes-for-musl.patch b/package/parted/0004-fix-includes-for-musl.patch
new file mode 100644
index 0000000000..28c94ace7c
--- /dev/null
+++ b/package/parted/0004-fix-includes-for-musl.patch
@@ -0,0 +1,18 @@
+Include <fcntl.h> to get loff_t definition
+
+Patch borrowed from Alpine Linux at
+http://git.alpinelinux.org/cgit/aports/plain/main/parted/fix-includes.patch. Solves
+build with musl.
+
+Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+
+--- parted-3.1.orig/libparted/fs/xfs/platform_defs.h
++++ parted-3.1/libparted/fs/xfs/platform_defs.h
+@@ -35,6 +35,7 @@
+ #define __XFS_PLATFORM_DEFS_H__
+
+ #include <stdio.h>
++#include <fcntl.h>
+ #include <stdarg.h>
+ #include <assert.h>
+ #include <endian.h>
OpenPOWER on IntegriCloud