summaryrefslogtreecommitdiff
path: root/Ports/pcre/patches/0001-test-Disable-S-on-serenity.patch
blob: 3bbbc587cfd21699701465dfa2d077d2ff2f25f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From 853cee5949361930be3a70e7f54941a8fdfabe4f Mon Sep 17 00:00:00 2001
From: Gunnar Beutner <gbeutner@serenityos.org>
Date: Fri, 14 Jan 2022 16:13:16 +0330
Subject: [PATCH] test: Disable '-S' on serenity

This flag uses setrlimit(), which is not supported.
---
 pcretest.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pcretest.c b/pcretest.c
index c1ee128..1ebab82 100644
--- a/pcretest.c
+++ b/pcretest.c
@@ -3168,7 +3168,7 @@ while (argc > 1 && argv[op][0] == '-')
       ((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
-- 
2.34.1