mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
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).
This commit is contained in:
parent
e1573991a3
commit
6de6dff5b9
Notes:
sideshowbarker
2024-07-18 07:11:07 +09:00
Author: https://github.com/roytam1 🔰 Commit: https://github.com/SerenityOS/serenity/commit/6de6dff5b90 Pull-request: https://github.com/SerenityOS/serenity/pull/9206 Reviewed-by: https://github.com/linusg
1 changed files with 14 additions and 0 deletions
14
Ports/diffutils/patches/fnmatch.patch
Normal file
14
Ports/diffutils/patches/fnmatch.patch
Normal file
|
@ -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;
|
Loading…
Reference in a new issue