commit:     29b50813e9b860b8e073eb30731d1b2b365c4496
Author:     Petr Vaněk <arkamar <AT> gentoo <DOT> org>
AuthorDate: Sat Dec 23 23:16:51 2023 +0000
Commit:     Petr Vaněk <arkamar <AT> gentoo <DOT> org>
CommitDate: Sun Dec 24 09:58:14 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=29b50813

dev-scheme/elk: add implicit function delcaration fix

Signed-off-by: Petr Vaněk <arkamar <AT> gentoo.org>

 dev-scheme/elk/elk-3.99.8.ebuild                   |  1 +
 .../elk/files/elk-3.99.8-implicit-function.patch   | 22 ++++++++++++++++++++++
 2 files changed, 23 insertions(+)

diff --git a/dev-scheme/elk/elk-3.99.8.ebuild b/dev-scheme/elk/elk-3.99.8.ebuild
index 80e1909b1571..d85e44593ae5 100644
--- a/dev-scheme/elk/elk-3.99.8.ebuild
+++ b/dev-scheme/elk/elk-3.99.8.ebuild
@@ -13,6 +13,7 @@ KEYWORDS="~amd64"
 
 PATCHES=(
        "${FILESDIR}"/${P}-implicit-int-incompat-ptr.patch
+       "${FILESDIR}"/${P}-implicit-function.patch
 )
 
 src_configure() {

diff --git a/dev-scheme/elk/files/elk-3.99.8-implicit-function.patch 
b/dev-scheme/elk/files/elk-3.99.8-implicit-function.patch
new file mode 100644
index 000000000000..d08ab77be12f
--- /dev/null
+++ b/dev-scheme/elk/files/elk-3.99.8-implicit-function.patch
@@ -0,0 +1,22 @@
+From 4fef651e27a4ea5bca02edfda4dc42201ab0985d Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20Van=C4=9Bk?= <[email protected]>
+Date: Sat, 23 Dec 2023 23:30:30 +0100
+Subject: [PATCH] add missing header file
+
+This fixes implicit-function-declaration error with modern compilers.
+
+diff --git a/src/proc.c b/src/proc.c
+index c78134a..fed0978 100644
+--- a/src/proc.c
++++ b/src/proc.c
+@@ -28,6 +28,7 @@
+  *
+  * THERE IS ABSOLUTELY NO WARRANTY FOR THIS SOFTWARE.
+  */
++#include <string.h>
+ 
+ #include "config.h"
+ 
+-- 
+2.43.0
+

Reply via email to