summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2020-02-10 01:18:13 +0100
committerDavid Seifert <soap@gentoo.org>2020-02-10 01:18:13 +0100
commitdca74e8493fee4b80a20d44c281feb9a20894d78 (patch)
treeda990f8b69f8459cb8026767a195bcdf7a45b10c /sys-apps/memtester/files/memtester-4.3.0-fix-gcc10-fno-common.patch
parentsys-apps/collectl: Remove old (diff)
downloadgentoo-dca74e8493fee4b80a20d44c281feb9a20894d78.tar.gz
gentoo-dca74e8493fee4b80a20d44c281feb9a20894d78.tar.bz2
gentoo-dca74e8493fee4b80a20d44c281feb9a20894d78.zip
sys-apps/memtester: Port to EAPI 7
Closes: https://bugs.gentoo.org/708052 Package-Manager: Portage-2.3.88, Repoman-2.3.20 Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'sys-apps/memtester/files/memtester-4.3.0-fix-gcc10-fno-common.patch')
-rw-r--r--sys-apps/memtester/files/memtester-4.3.0-fix-gcc10-fno-common.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/sys-apps/memtester/files/memtester-4.3.0-fix-gcc10-fno-common.patch b/sys-apps/memtester/files/memtester-4.3.0-fix-gcc10-fno-common.patch
new file mode 100644
index 000000000000..8bb58e5771c0
--- /dev/null
+++ b/sys-apps/memtester/files/memtester-4.3.0-fix-gcc10-fno-common.patch
@@ -0,0 +1,31 @@
+--- a/tests.c
++++ b/tests.c
+@@ -27,6 +27,9 @@
+ #define PROGRESSOFTEN 2500
+ #define ONE 0x00000001L
+
++union mword8_type mword8;
++union mword16_type mword16;
++
+ /* Function definitions. */
+
+ int compare_regions(ulv *bufa, ulv *bufb, size_t count) {
+--- a/types.h
++++ b/types.h
+@@ -25,12 +25,12 @@
+ int (*fp)();
+ };
+
+-union {
++union mword8_type {
+ unsigned char bytes[UL_LEN/8];
+ ul val;
+-} mword8;
++};
+
+-union {
++union mword16_type {
+ unsigned short u16s[UL_LEN/16];
+ ul val;
+-} mword16;
++};