summaryrefslogtreecommitdiff
path: root/Ports
diff options
context:
space:
mode:
authorGunnar Beutner <gbeutner@serenityos.org>2021-08-14 11:43:21 +0200
committerAndreas Kling <kling@serenityos.org>2021-08-14 12:40:49 +0200
commitff8e016d948511a902cd992205bb22b16ee91cf9 (patch)
tree8abf0a8da5289713c2f82181c827a68155979722 /Ports
parentf8d91c8f8fb1d16ebf1fb92fd3554e05de187186 (diff)
downloadserenity-ff8e016d948511a902cd992205bb22b16ee91cf9.zip
Ports: Fix building the nano port
Diffstat (limited to 'Ports')
-rw-r--r--Ports/nano/patches/fnmatch.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/Ports/nano/patches/fnmatch.patch b/Ports/nano/patches/fnmatch.patch
new file mode 100644
index 0000000000..e875cadaee
--- /dev/null
+++ b/Ports/nano/patches/fnmatch.patch
@@ -0,0 +1,14 @@
+diff -Naur nano-5.8/lib/fnmatch_loop.c nano-5.8.serenity/lib/fnmatch_loop.c
+--- nano-5.8/lib/fnmatch_loop.c 2020-06-26 21:57:10.000000000 +0200
++++ nano-5.8.serenity/lib/fnmatch_loop.c 2021-05-08 05:06:59.944736766 +0200
+@@ -19,6 +19,10 @@
+ # include <stdint.h>
+ #endif
+
++#ifdef __serenity__
++# define FNM_EXTMATCH 9000
++#endif
++
+ struct STRUCT
+ {
+ const CHAR *pattern;