summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2020-01-21 22:51:01 +0100
committerDavid Seifert <soap@gentoo.org>2020-01-21 22:51:01 +0100
commit5095b1a1460425473137531dfbc85af1cdbc2a99 (patch)
tree497c05a9a81351e2a5038e76ba348fcd902e02a6 /app-text/xml2doc
parentapp-text/xml2doc: Port to EAPI 7 (diff)
downloadgentoo-5095b1a1460425473137531dfbc85af1cdbc2a99.tar.gz
gentoo-5095b1a1460425473137531dfbc85af1cdbc2a99.tar.bz2
gentoo-5095b1a1460425473137531dfbc85af1cdbc2a99.zip
app-text/xml2doc: Add patch for GCC 10
Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'app-text/xml2doc')
-rw-r--r--app-text/xml2doc/files/xml2doc-20030510-gcc10-no-common.patch18
-rw-r--r--app-text/xml2doc/xml2doc-20030510-r1.ebuild2
2 files changed, 20 insertions, 0 deletions
diff --git a/app-text/xml2doc/files/xml2doc-20030510-gcc10-no-common.patch b/app-text/xml2doc/files/xml2doc-20030510-gcc10-no-common.patch
new file mode 100644
index 000000000000..17965c946abe
--- /dev/null
+++ b/app-text/xml2doc/files/xml2doc-20030510-gcc10-no-common.patch
@@ -0,0 +1,18 @@
+--- a/src/defs.h
++++ b/src/defs.h
+@@ -18,13 +18,13 @@
+
+ /* Global vars */
+
+-enum
++enum align
+ {
+ ALIGN_RIGHT,
+ ALIGN_LEFT,
+ ALIGN_JUSTIFY,
+ ALIGN_CENTER
+-} align;
++};
+
+ typedef struct
+ {
diff --git a/app-text/xml2doc/xml2doc-20030510-r1.ebuild b/app-text/xml2doc/xml2doc-20030510-r1.ebuild
index 3c962351552f..e4a387e503a4 100644
--- a/app-text/xml2doc/xml2doc-20030510-r1.ebuild
+++ b/app-text/xml2doc/xml2doc-20030510-r1.ebuild
@@ -23,6 +23,8 @@ PATCHES=(
"${FILESDIR}"/${PN}-pointer_fix.patch
# Don't strip symbols from binary (bug #152266)
"${FILESDIR}"/${P}-makefile.patch
+ # fix GCC 10 -fno-common change
+ "${FILESDIR}"/${P}-gcc10-no-common.patch
)
src_configure() {