summaryrefslogtreecommitdiff
path: root/Ports/diffutils/patches
diff options
context:
space:
mode:
authorroytam1 <roytam@gmail.com>2021-08-04 23:13:49 +0800
committerLinus Groh <mail@linusgroh.de>2021-08-09 17:56:29 +0100
commit6de6dff5b907f3bd3d96926bbde74327d3126f9f (patch)
tree6a24d6e2caf8b0b7e9a4583224b3a82b00b4be7e /Ports/diffutils/patches
parente1573991a3aff3d2c32f29aaa15793b78b9fb474 (diff)
downloadserenity-6de6dff5b907f3bd3d96926bbde74327d3126f9f.zip
Ports: Add missing fnmatch patch for diffutils
It requires FNM_EXTMATCH in order to build. This patch is based on an existing patch for gettext (Ports/gettext/patches/fnmatch.patch).
Diffstat (limited to 'Ports/diffutils/patches')
-rw-r--r--Ports/diffutils/patches/fnmatch.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/Ports/diffutils/patches/fnmatch.patch b/Ports/diffutils/patches/fnmatch.patch
new file mode 100644
index 0000000000..711781a318
--- /dev/null
+++ b/Ports/diffutils/patches/fnmatch.patch
@@ -0,0 +1,14 @@
+diff -Naur gettext-0.21/gettext-tools/gnulib-lib/fnmatch_loop.c gettext-0.21.serenity/gettext-tools/gnulib-lib/fnmatch_loop.c
+--- diffutils-3.7/lib/fnmatch_loop.c 2020-06-26 21:57:10.000000000 +0200
++++ diffutils-3.7.serenity/lib/fnmatch_loop.c 2021-05-08 05:06:59.944736766 +0200
+@@ -19,6 +19,10 @@
+
+ /* Match STRING against the file name pattern PATTERN, returning zero if
+ it matches, nonzero if not. */
++#ifdef __serenity__
++# define FNM_EXTMATCH 9000
++#endif
++
+ static int EXT (INT opt, const CHAR *pattern, const CHAR *string,
+ const CHAR *string_end, bool no_leading_period, int flags)
+ internal_function;