summaryrefslogtreecommitdiff
path: root/Ports/pcre/patches
diff options
context:
space:
mode:
authorGunnar Beutner <gunnar@beutner.name>2021-04-12 01:38:56 +0200
committerAndreas Kling <kling@serenityos.org>2021-04-14 21:46:20 +0200
commit97471030e7b99cc0729ef7975808a94d585edfa5 (patch)
treedbbdc223b8fe30fe691fc847db73f3abbfd99d39 /Ports/pcre/patches
parentf5ccecacc554adb63d19111236fff76488611e5e (diff)
downloadserenity-97471030e7b99cc0729ef7975808a94d585edfa5.zip
Ports: Add port for pcre
Diffstat (limited to 'Ports/pcre/patches')
-rw-r--r--Ports/pcre/patches/fix-autoconf.patch12
-rw-r--r--Ports/pcre/patches/fix-rlimit.patch12
2 files changed, 24 insertions, 0 deletions
diff --git a/Ports/pcre/patches/fix-autoconf.patch b/Ports/pcre/patches/fix-autoconf.patch
new file mode 100644
index 0000000000..328ed5d060
--- /dev/null
+++ b/Ports/pcre/patches/fix-autoconf.patch
@@ -0,0 +1,12 @@
+diff -Naur pcre-8.44/config.sub pcre-8.44.serenity/config.sub
+--- pcre-8.44/config.sub 2020-02-12 18:17:31.000000000 +0100
++++ pcre-8.44.serenity/config.sub 2021-04-12 01:21:59.467797075 +0200
+@@ -1390,7 +1390,7 @@
+ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
+ | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \
+ | -onefs* | -tirtos* | -phoenix* | -fuchsia* | -redox* | -bme* \
+- | -midnightbsd*)
++ | -midnightbsd* | -serenity*)
+ # Remember, each alternative MUST END IN *, to match a version number.
+ ;;
+ -qnx*)
diff --git a/Ports/pcre/patches/fix-rlimit.patch b/Ports/pcre/patches/fix-rlimit.patch
new file mode 100644
index 0000000000..16b78b08c8
--- /dev/null
+++ b/Ports/pcre/patches/fix-rlimit.patch
@@ -0,0 +1,12 @@
+diff -Naur pcre-8.44/pcretest.c pcre-8.44.serenity/pcretest.c
+--- pcre-8.44/pcretest.c 2020-02-11 18:28:46.000000000 +0100
++++ pcre-8.44.serenity/pcretest.c 2021-04-12 01:23:25.182873375 +0200
+@@ -3168,7 +3168,7 @@
+ ((stack_size = get_value((pcre_uint8 *)argv[op+1], &endptr)),
+ *endptr == 0))
+ {
+-#if defined(_WIN32) || defined(WIN32) || defined(__minix) || defined(NATIVE_ZOS) || defined(__VMS)
++#if defined(_WIN32) || defined(WIN32) || defined(__minix) || defined(NATIVE_ZOS) || defined(__VMS) || defined(__serenity__)
+ printf("PCRE: -S not supported on this OS\n");
+ exit(1);
+ #else