summaryrefslogtreecommitdiff
path: root/Ports/gettext/patches/0002-Stub-out-the-getprogname-implementation.patch
diff options
context:
space:
mode:
Diffstat (limited to 'Ports/gettext/patches/0002-Stub-out-the-getprogname-implementation.patch')
-rw-r--r--Ports/gettext/patches/0002-Stub-out-the-getprogname-implementation.patch67
1 files changed, 67 insertions, 0 deletions
diff --git a/Ports/gettext/patches/0002-Stub-out-the-getprogname-implementation.patch b/Ports/gettext/patches/0002-Stub-out-the-getprogname-implementation.patch
new file mode 100644
index 0000000000..0a7f560100
--- /dev/null
+++ b/Ports/gettext/patches/0002-Stub-out-the-getprogname-implementation.patch
@@ -0,0 +1,67 @@
+From 5eb27ed6f09fb3387c23fb6cd4c39204d4592787 Mon Sep 17 00:00:00 2001
+From: Ali Mohammad Pur <ali.mpfard@gmail.com>
+Date: Mon, 16 May 2022 15:44:53 +0430
+Subject: [PATCH 2/3] Stub out the getprogname() implementation
+
+---
+ gettext-runtime/gnulib-lib/getprogname.c | 2 ++
+ gettext-tools/gnulib-lib/getprogname.c | 2 ++
+ gettext-tools/libgettextpo/getprogname.c | 2 ++
+ libtextstyle/lib/getprogname.c | 2 ++
+ 4 files changed, 8 insertions(+)
+
+diff --git a/gettext-runtime/gnulib-lib/getprogname.c b/gettext-runtime/gnulib-lib/getprogname.c
+index 5e6f764..e800b89 100644
+--- a/gettext-runtime/gnulib-lib/getprogname.c
++++ b/gettext-runtime/gnulib-lib/getprogname.c
+@@ -245,6 +245,8 @@ getprogname (void)
+ }
+ }
+ return NULL;
++# elif defined(__serenity__)
++ return NULL;
+ # else
+ # error "getprogname module not ported to this OS"
+ # endif
+diff --git a/gettext-tools/gnulib-lib/getprogname.c b/gettext-tools/gnulib-lib/getprogname.c
+index 5e6f764..e800b89 100644
+--- a/gettext-tools/gnulib-lib/getprogname.c
++++ b/gettext-tools/gnulib-lib/getprogname.c
+@@ -245,6 +245,8 @@ getprogname (void)
+ }
+ }
+ return NULL;
++# elif defined(__serenity__)
++ return NULL;
+ # else
+ # error "getprogname module not ported to this OS"
+ # endif
+diff --git a/gettext-tools/libgettextpo/getprogname.c b/gettext-tools/libgettextpo/getprogname.c
+index 5e6f764..e800b89 100644
+--- a/gettext-tools/libgettextpo/getprogname.c
++++ b/gettext-tools/libgettextpo/getprogname.c
+@@ -245,6 +245,8 @@ getprogname (void)
+ }
+ }
+ return NULL;
++# elif defined(__serenity__)
++ return NULL;
+ # else
+ # error "getprogname module not ported to this OS"
+ # endif
+diff --git a/libtextstyle/lib/getprogname.c b/libtextstyle/lib/getprogname.c
+index 5e6f764..e800b89 100644
+--- a/libtextstyle/lib/getprogname.c
++++ b/libtextstyle/lib/getprogname.c
+@@ -245,6 +245,8 @@ getprogname (void)
+ }
+ }
+ return NULL;
++# elif defined(__serenity__)
++ return NULL;
+ # else
+ # error "getprogname module not ported to this OS"
+ # endif
+--
+2.36.1
+