Closes: https://bugs.gentoo.org/696034
Package-Manager: Portage-2.3.76, Repoman-2.3.17
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
"${FILESDIR}"/${P}-Werror-format-security.patch # bug 540470
"${FILESDIR}"/${P}-glibc228.patch # bug 670781
"${FILESDIR}"/${P}-GLX_RGBA_FLOAT_BIT.patch # bug 672858
+ "${FILESDIR}"/${P}-static-func.patch # bug 696034
)
src_prepare() {
--- /dev/null
+https://sourceforge.net/p/alleg/bugs/398/
+
+--- a/addons/jpgalleg/src/decode.c 2008-02-13 14:04:57.000000000 +0100
++++ b/addons/jpgalleg/src/decode.c 2015-09-03 14:57:57.888485546 +0200
+@@ -477,7 +477,7 @@
+ * Reads a string of bits from the input stream and returns a properly signed
+ * number given the category.
+ */
+-INLINE int
++static INLINE int
+ get_value(int category)
+ {
+ int result = get_bits(category);