sci-calculators/tiemu: fix missing include
authorChristophe Lermytte <gentoo@lermytte.be>
Sun, 26 Jan 2020 21:39:24 +0000 (22:39 +0100)
committerDavid Seifert <soap@gentoo.org>
Sun, 26 Jan 2020 21:39:24 +0000 (22:39 +0100)
* Patch by Debian

Bug: https://bugs.gentoo.org/664698
Closes: https://github.com/gentoo/gentoo/pull/14355
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: David Seifert <soap@gentoo.org>
sci-calculators/tiemu/files/tiemu-3.03-fix-ftbfs-with-customized-abort-function.patch [new file with mode: 0644]
sci-calculators/tiemu/tiemu-3.03-r1.ebuild

diff --git a/sci-calculators/tiemu/files/tiemu-3.03-fix-ftbfs-with-customized-abort-function.patch b/sci-calculators/tiemu/files/tiemu-3.03-fix-ftbfs-with-customized-abort-function.patch
new file mode 100644 (file)
index 0000000..effcbc1
--- /dev/null
@@ -0,0 +1,14 @@
+Description: Fix FTBFS error: '"abort" passed 1 arguments, but takes just 0'
+Author: Andreas B. Mundt <andi@debian.org> with help from #debian-science (jokva).
+Last-Update: 2018-05-19
+
+--- a/src/core/uae/sysdeps.h
++++ b/src/core/uae/sysdeps.h
+@@ -33,6 +33,7 @@
+ #define _GNU_SOURCE
+ #endif
+ #include <limits.h>
++#include <stdlib.h>
+ // Make sure that the character types take exactly 1 byte.
+ #if UCHAR_MAX != 0xFF
index 7be3aee95f02f731965f8319fcf227cb6b21e8e0..b21f37d02707fdf16f408b20ea65c2147729daf0 100644 (file)
@@ -32,6 +32,7 @@ DEPEND="${RDEPEND}
 PATCHES=(
        "${FILESDIR}"/${P}-remove_depreciated_gtk_calls.patch
        "${FILESDIR}"/${P}-r2820.patch
+       "${FILESDIR}"/${P}-fix-ftbfs-with-customized-abort-function.patch
 )
 
 src_prepare() {