sys-fs/hfsplusutils: Fix GCC 10
authorDavid Seifert <soap@gentoo.org>
Sat, 8 Feb 2020 12:06:45 +0000 (13:06 +0100)
committerDavid Seifert <soap@gentoo.org>
Sat, 8 Feb 2020 12:06:45 +0000 (13:06 +0100)
Closes: https://bugs.gentoo.org/707690
Package-Manager: Portage-2.3.87, Repoman-2.3.20
Signed-off-by: David Seifert <soap@gentoo.org>
sys-fs/hfsplusutils/files/hfsplusutils-1.0.4-fno-common-gcc10.patch [new file with mode: 0644]
sys-fs/hfsplusutils/hfsplusutils-1.0.4-r2.ebuild

diff --git a/sys-fs/hfsplusutils/files/hfsplusutils-1.0.4-fno-common-gcc10.patch b/sys-fs/hfsplusutils/files/hfsplusutils-1.0.4-fno-common-gcc10.patch
new file mode 100644 (file)
index 0000000..dde912d
--- /dev/null
@@ -0,0 +1,27 @@
+--- a/libhfsp/src/fscheck.c
++++ b/libhfsp/src/fscheck.c
+@@ -47,6 +47,8 @@
+ # include "os.h"
+ # include "swab.h"
++struct fsck_data_t fsck_data;
++
+ /* Dump all raw fork information to stdout */
+ void print_fork(hfsp_fork_raw* f)
+ {
+--- a/libhfsp/src/fscheck.h
++++ b/libhfsp/src/fscheck.h
+@@ -100,10 +100,11 @@
+ int fscheck_files(volume* vol);
+ /** global data used during fsck */
+-struct {
++struct fsck_data_t {
+     UInt32  maxCnid;
+     UInt32  macNow; // current date in mac-offset
+     int           verbose;
+     int           ignoreErr;
+-} fsck_data;
++};
++extern struct fsck_data_t fsck_data;
index 4e624f1b33c81efcdd943f80e8e80d652235c4ef..a578df335018f0c9b2291429c2024b96f54f014f 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -24,6 +24,7 @@ PATCHES=(
        "${FILESDIR}"/${P}-string.patch
        "${FILESDIR}"/${P}-stdlib.patch
        "${FILESDIR}"/${P}-cflags.patch
+       "${FILESDIR}"/${P}-fno-common-gcc10.patch
 )
 
 src_prepare() {