summaryrefslogtreecommitdiff
path: root/Ports/pcre2/patches/0001-Disable-pcre2test-s-S-flag-on-serenity.patch
blob: 6dc9152bcdab345870652d6d028c8f0c1adf3fe5 (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
From b393ee4471f82747803f0c557d9a7895a4b293b3 Mon Sep 17 00:00:00 2001
From: Brian Callahan <bcallah@openbsd.org>
Date: Thu, 23 Jan 2020 23:43:31 -0500
Subject: [PATCH] Disable pcre2test's `-S` flag on serenity

---
 src/pcre2test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/pcre2test.c b/src/pcre2test.c
index 84987d7..35a7a5a 100644
--- a/src/pcre2test.c
+++ b/src/pcre2test.c
@@ -8689,7 +8689,7 @@ while (argc > 1 && argv[op][0] == '-' && argv[op][1] != 0)
   else if (strcmp(arg, "-S") == 0 && argc > 2 &&
       ((uli = strtoul(argv[op+1], &endptr, 10)), *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__)
     fprintf(stderr, "pcre2test: -S is not supported on this OS\n");
     exit(1);
 #else
-- 
2.36.1