summaryrefslogtreecommitdiff
path: root/app-text/html-xml-utils/files/html-xml-utils-8.7-fix-dtd-declaration.patch
diff options
context:
space:
mode:
authorPetr Vaněk <arkamar@gentoo.org>2025-07-26 09:06:22 +0200
committerPetr Vaněk <arkamar@gentoo.org>2025-07-26 09:12:35 +0200
commit330558500a2af678ee0f015242946df0a17c485d (patch)
tree11eac18ff9e667d82f61478368346d243f454ab2 /app-text/html-xml-utils/files/html-xml-utils-8.7-fix-dtd-declaration.patch
parent4ea7ed5ab50d5e6c669c136833a2f308b03fbd38 (diff)
downloadgentoo-330558500a2af678ee0f015242946df0a17c485d.tar.gz
gentoo-330558500a2af678ee0f015242946df0a17c485d.tar.bz2
gentoo-330558500a2af678ee0f015242946df0a17c485d.zip
app-text/html-xml-utils: fix c23 compilation issue
The previous declaration issue produced with a modern C compilers is fixed with the patch taken from openSUSE. Link: https://build.opensuse.org/projects/openSUSE:Factory/packages/html-xml-utils/files/fix-dtd-declaration.patch?rev=ea956870c438d781dcc28522afb4abf9 Closes: https://bugs.gentoo.org/944756 Signed-off-by: Petr Vaněk <arkamar@gentoo.org>
Diffstat (limited to 'app-text/html-xml-utils/files/html-xml-utils-8.7-fix-dtd-declaration.patch')
-rw-r--r--app-text/html-xml-utils/files/html-xml-utils-8.7-fix-dtd-declaration.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/app-text/html-xml-utils/files/html-xml-utils-8.7-fix-dtd-declaration.patch b/app-text/html-xml-utils/files/html-xml-utils-8.7-fix-dtd-declaration.patch
new file mode 100644
index 000000000000..d37529c823e1
--- /dev/null
+++ b/app-text/html-xml-utils/files/html-xml-utils-8.7-fix-dtd-declaration.patch
@@ -0,0 +1,15 @@
+Patch taken from
+https://build.opensuse.org/projects/openSUSE:Factory/packages/html-xml-utils/files/fix-dtd-declaration.patch?rev=ea956870c438d781dcc28522afb4abf9
+
+--- html-xml-utils-8.7/dtd.c 2025-06-28 10:44:08.062000908 +0200
++++ html-xml-utils-8.7/dtd.c 2025-06-28 10:44:31.310766962 +0200
+@@ -74,8 +74,7 @@
+ } ElementType;
+
+ /* lookup_element -- look up the string in the hash table */
+-EXPORT const ElementType * lookup_element(/* register const char *str,
+- register unsigned int len */);
++EXPORT const ElementType * lookup_element(register const char *str, register size_t len);
+
+ /* Different kinds of parent elements: */
+ #define PHRASE "abbr", "acronym", "b", "bdi", "bdo", "big", "cite", "code", "dfn", "em", "i", "kbd", "q", "s", "samp", "small", "span", "strong", "sub", "sup", "time", "tt", "u", "var"