From a08209ee56b3587dff4b4004f3e313e83ad88d7d Mon Sep 17 00:00:00 2001
From: Waldemar Brodkorb <wbx@openadk.org>
Date: Wed, 25 Dec 2013 20:58:14 +0100
Subject: fix musl compile

---
 package/parted/Makefile                                       |  2 +-
 package/parted/patches/patch-lib_config_h_in                  |  8 ++++----
 package/parted/patches/patch-libparted_fs_xfs_platform_defs_h | 11 +++++++++++
 3 files changed, 16 insertions(+), 5 deletions(-)
 create mode 100644 package/parted/patches/patch-libparted_fs_xfs_platform_defs_h

(limited to 'package/parted')

diff --git a/package/parted/Makefile b/package/parted/Makefile
index e0898450b..8223abe7b 100644
--- a/package/parted/Makefile
+++ b/package/parted/Makefile
@@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=		parted
 PKG_VERSION:=		3.1
-PKG_RELEASE:=		1
+PKG_RELEASE:=		2
 PKG_MD5SUM:=		5d89d64d94bcfefa9ce8f59f4b81bdcb
 PKG_DESCR:=		partition table editor
 PKG_SECTION:=		fs
diff --git a/package/parted/patches/patch-lib_config_h_in b/package/parted/patches/patch-lib_config_h_in
index ba4569ea9..df6cb1f7d 100644
--- a/package/parted/patches/patch-lib_config_h_in
+++ b/package/parted/patches/patch-lib_config_h_in
@@ -1,7 +1,7 @@
---- parted-3.0.orig/lib/config.h.in	2011-05-30 09:07:32.000000000 +0200
-+++ parted-3.0/lib/config.h.in	2013-02-11 15:50:00.000000000 +0100
-@@ -1385,6 +1385,11 @@
- # endif
+--- parted-3.1.orig/lib/config.h.in	2012-03-02 17:10:29.000000000 +0100
++++ parted-3.1/lib/config.h.in	2013-12-25 20:03:47.000000000 +0100
+@@ -1424,6 +1424,11 @@
+ # define _DARWIN_USE_64_BIT_INODE 1
  #endif
  
 +/* Enable large inode numbers on Mac OS X 10.5.  */
diff --git a/package/parted/patches/patch-libparted_fs_xfs_platform_defs_h b/package/parted/patches/patch-libparted_fs_xfs_platform_defs_h
new file mode 100644
index 000000000..9d6fe232d
--- /dev/null
+++ b/package/parted/patches/patch-libparted_fs_xfs_platform_defs_h
@@ -0,0 +1,11 @@
+--- parted-3.1.orig/libparted/fs/xfs/platform_defs.h	2012-01-12 17:38:40.000000000 +0100
++++ parted-3.1/libparted/fs/xfs/platform_defs.h	2013-12-25 20:53:13.000000000 +0100
+@@ -51,7 +51,7 @@
+ # define constpp	char * const *
+ #endif
+ 
+-typedef loff_t		xfs_off_t;
++typedef off_t		xfs_off_t;
+ typedef uint64_t	xfs_ino_t;
+ typedef uint32_t	xfs_dev_t;
+ typedef int64_t         xfs_daddr_t;
-- 
cgit v1.2.3