dev-scheme/elk: add implicit function delcaration fix

Signed-off-by: Petr Vaněk <arkamar@gentoo.org>
This commit is contained in:
Petr Vaněk
2023-12-24 00:16:51 +01:00
parent 64afdb6908
commit 29b50813e9
2 changed files with 23 additions and 0 deletions

View File

@@ -13,6 +13,7 @@ KEYWORDS="~amd64"
PATCHES=(
"${FILESDIR}"/${P}-implicit-int-incompat-ptr.patch
"${FILESDIR}"/${P}-implicit-function.patch
)
src_configure() {

View File

@@ -0,0 +1,22 @@
From 4fef651e27a4ea5bca02edfda4dc42201ab0985d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20Van=C4=9Bk?= <arkamar@gentoo.org>
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