sys-fs/hfsplusutils: clean up more missing header warnings
authorMike Frysinger <vapier@gentoo.org>
Sat, 23 Apr 2016 06:37:51 +0000 (02:37 -0400)
committerMike Frysinger <vapier@gentoo.org>
Sat, 23 Apr 2016 06:37:51 +0000 (02:37 -0400)
sys-fs/hfsplusutils/files/hfsplusutils-1.0.4-stdlib.patch [new file with mode: 0644]
sys-fs/hfsplusutils/files/hfsplusutils-1.0.4-string.patch
sys-fs/hfsplusutils/hfsplusutils-1.0.4-r1.ebuild

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 (file)
index 0000000..211a502
--- /dev/null
@@ -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"
index 2602876a1127cb2bd17960e634ffbb55c8a2721c..37abcbd318993d11f51330f3b9efdc6555363370 100644 (file)
@@ -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"
index e11b120184848a964c717ed6e56c388012b77130..380d9b2930946e4077c7634bec82e8e37eb379e0 100644 (file)
@@ -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
 }