summaryrefslogtreecommitdiff
path: root/Ports/cfunge/patches/0004-Define-_POSIX_REGEXP.patch
blob: 594fd67f8ab26b5e937db5ec6cc06a721608e26c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Tobias Christiansen <tobyase@serenityos.org>
Date: Thu, 24 Mar 2022 15:41:48 +0100
Subject: [PATCH] Define _POSIX_REGEXP

Serenity's libc does have regex.
---
 src/fingerprints/REXP/REXP.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/fingerprints/REXP/REXP.c b/src/fingerprints/REXP/REXP.c
index c208078..88616b2 100644
--- a/src/fingerprints/REXP/REXP.c
+++ b/src/fingerprints/REXP/REXP.c
@@ -28,6 +28,7 @@
 #include <unistd.h>
 #include <string.h>
 
+#define _POSIX_REGEXP 1
 #if !defined(_POSIX_REGEXP) || (_POSIX_REGEXP < 1)
 #  error "cfunge needs POSIX regular expressions, which this system claims it doesn't have."
 #endif