summaryrefslogtreecommitdiff
path: root/dev-util/tinlink/files/tinlink-1.0.0-Add-missing-include-for-strlen.patch
diff options
context:
space:
mode:
Diffstat (limited to 'dev-util/tinlink/files/tinlink-1.0.0-Add-missing-include-for-strlen.patch')
-rw-r--r--dev-util/tinlink/files/tinlink-1.0.0-Add-missing-include-for-strlen.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/dev-util/tinlink/files/tinlink-1.0.0-Add-missing-include-for-strlen.patch b/dev-util/tinlink/files/tinlink-1.0.0-Add-missing-include-for-strlen.patch
new file mode 100644
index 000000000000..6b4f8516b65a
--- /dev/null
+++ b/dev-util/tinlink/files/tinlink-1.0.0-Add-missing-include-for-strlen.patch
@@ -0,0 +1,15 @@
+From 38a37394194794217371d1213424646a77674ce6 Mon Sep 17 00:00:00 2001
+From: Sam James <sam@gentoo.org>
+Date: Tue, 18 Oct 2022 21:26:25 +0100
+Subject: [PATCH] Add missing include for strlen
+
+--- a/tinlink.c
++++ b/tinlink.c
+@@ -33,6 +33,7 @@
+ #include <unistd.h>
+ #include <errno.h>
+ #include <stdlib.h>
++#include <string.h>
+
+ #define DEFAULT_START (unsigned char *)(0x8000000+sizeof(Elf32_Ehdr)-8+sizeof(Elf32_Phdr)-2)
+ #define DEFAULT_OUTPUT "a.out"