diff options
Diffstat (limited to 'sys-fs/hfsplusutils')
-rw-r--r-- | sys-fs/hfsplusutils/files/hfsplusutils-1.0.4-stdlib.patch | 22 | ||||
-rw-r--r-- | sys-fs/hfsplusutils/files/hfsplusutils-1.0.4-string.patch | 26 | ||||
-rw-r--r-- | sys-fs/hfsplusutils/hfsplusutils-1.0.4-r1.ebuild | 1 |
3 files changed, 47 insertions, 2 deletions
diff --git a/sys-fs/hfsplusutils/files/hfsplusutils-1.0.4-stdlib.patch b/sys-fs/hfsplusutils/files/hfsplusutils-1.0.4-stdlib.patch new file mode 100644 index 000000000000..211a50225eb8 --- /dev/null +++ b/sys-fs/hfsplusutils/files/hfsplusutils-1.0.4-stdlib.patch @@ -0,0 +1,22 @@ +needed for exit() prototype + +--- a/libhfsp/src/os.c ++++ b/libhfsp/src/os.c +@@ -46,6 +46,7 @@ int fstat(int, struct stat *); + # endif + + # include <stdio.h> ++# include <stdlib.h> + + + # include <errno.h> +--- a/libhfsp/src/record.c ++++ b/libhfsp/src/record.c +@@ -32,6 +32,7 @@ + #include <errno.h> + #include <stdio.h> + #include <string.h> ++#include <stdlib.h> + + #include "libhfsp.h" + #include "hfstime.h" diff --git a/sys-fs/hfsplusutils/files/hfsplusutils-1.0.4-string.patch b/sys-fs/hfsplusutils/files/hfsplusutils-1.0.4-string.patch index 2602876a1127..37abcbd31899 100644 --- a/sys-fs/hfsplusutils/files/hfsplusutils-1.0.4-string.patch +++ b/sys-fs/hfsplusutils/files/hfsplusutils-1.0.4-string.patch @@ -1,5 +1,7 @@ ---- libhfsp/src/unicode.c.bak 2007-01-08 17:14:44.000000000 -0500 -+++ libhfsp/src/unicode.c 2007-01-08 17:14:52.000000000 -0500 +needed for mem* funcs + +--- a/libhfsp/src/unicode.c ++++ b/libhfsp/src/unicode.c @@ -16,7 +16,7 @@ #include <stdlib.h> #include <endian.h> @@ -9,3 +11,23 @@ #define __USE_GNU /* need wcsrtomb */ +--- a/libhfsp/src/partitions.c ++++ b/libhfsp/src/partitions.c +@@ -31,6 +31,7 @@ + #include "os.h" + #include "libhfsp.h" + ++#include <string.h> + #include <stdlib.h> + + /* +--- a/libhfsp/src/record.c ++++ b/libhfsp/src/record.c +@@ -32,6 +32,7 @@ + + #include <errno.h> + #include <stdio.h> ++#include <string.h> + + #include "libhfsp.h" + #include "hfstime.h" diff --git a/sys-fs/hfsplusutils/hfsplusutils-1.0.4-r1.ebuild b/sys-fs/hfsplusutils/hfsplusutils-1.0.4-r1.ebuild index e11b12018484..380d9b293094 100644 --- a/sys-fs/hfsplusutils/hfsplusutils-1.0.4-r1.ebuild +++ b/sys-fs/hfsplusutils/hfsplusutils-1.0.4-r1.ebuild @@ -25,6 +25,7 @@ src_prepare() { epatch "${FILESDIR}/${P}-errno.patch" epatch "${FILESDIR}/${P}-gcc4.patch" epatch "${FILESDIR}/${P}-string.patch" + epatch "${FILESDIR}/${P}-stdlib.patch" # let's avoid the Makefile.cvs since isn't working for us eautoreconf } |