summaryrefslogtreecommitdiff
path: root/Ports/libiconv/patches/0001-Stub-out-getprogname-for-serenity.patch
diff options
context:
space:
mode:
authorTim Schumacher <timschumi@gmx.de>2022-05-25 13:59:31 +0200
committerLinus Groh <mail@linusgroh.de>2022-05-25 22:54:04 +0100
commitffe541e4ef7b6519cd35d186c2243a84f851ef5d (patch)
tree915e24eeaf1915ffd96bf53ad7acaaccc757735e /Ports/libiconv/patches/0001-Stub-out-getprogname-for-serenity.patch
parentf31f25b9184e20fa6a8b6ef9218547df0ed0cf9a (diff)
downloadserenity-ffe541e4ef7b6519cd35d186c2243a84f851ef5d.zip
Ports: Replace the `libiconv` `config.sub` patch with our download
Diffstat (limited to 'Ports/libiconv/patches/0001-Stub-out-getprogname-for-serenity.patch')
-rw-r--r--Ports/libiconv/patches/0001-Stub-out-getprogname-for-serenity.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/Ports/libiconv/patches/0001-Stub-out-getprogname-for-serenity.patch b/Ports/libiconv/patches/0001-Stub-out-getprogname-for-serenity.patch
new file mode 100644
index 0000000000..303e51e34c
--- /dev/null
+++ b/Ports/libiconv/patches/0001-Stub-out-getprogname-for-serenity.patch
@@ -0,0 +1,25 @@
+From 9b61ddd52828042b106d7d4c3fef582be9c933e7 Mon Sep 17 00:00:00 2001
+From: Vincent Sanders <vince@kyllikki.org>
+Date: Sun, 6 Oct 2019 11:11:16 +0100
+Subject: [PATCH 1/1] Stub out getprogname() for serenity
+
+---
+ srclib/getprogname.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/srclib/getprogname.c b/srclib/getprogname.c
+index 22d71eb..7cc112d 100644
+--- a/srclib/getprogname.c
++++ b/srclib/getprogname.c
+@@ -244,6 +244,8 @@ getprogname (void)
+ }
+ }
+ return NULL;
++# elif defined __serenity__
++ return "?";
+ # else
+ # error "getprogname module not ported to this OS"
+ # endif
+--
+2.36.1
+