summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetr Vaněk <arkamar@gentoo.org>2023-12-24 00:16:51 +0100
committerPetr Vaněk <arkamar@gentoo.org>2023-12-24 10:58:14 +0100
commit29b50813e9b860b8e073eb30731d1b2b365c4496 (patch)
tree09dded908b1020a307fcef6d04478fb3b622568f /dev-scheme
parentdev-qt/qtwebengine: filter -march on arm64 with gcc for now (qt6) (diff)
downloadgentoo-29b50813e9b860b8e073eb30731d1b2b365c4496.tar.gz
gentoo-29b50813e9b860b8e073eb30731d1b2b365c4496.tar.bz2
gentoo-29b50813e9b860b8e073eb30731d1b2b365c4496.zip
dev-scheme/elk: add implicit function delcaration fix
Signed-off-by: Petr Vaněk <arkamar@gentoo.org>
Diffstat (limited to 'dev-scheme')
-rw-r--r--dev-scheme/elk/elk-3.99.8.ebuild1
-rw-r--r--dev-scheme/elk/files/elk-3.99.8-implicit-function.patch22
2 files changed, 23 insertions, 0 deletions
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?= <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
+