serenity/Ports/flex/patches/0002-Don-t-use-libc-s-regex.patch

32 lines
1.1 KiB
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Brian Callahan <bcallah@openbsd.org>
Date: Thu, 23 Jan 2020 23:43:31 -0500
Subject: [PATCH] Don't use libc's regex
---
configure | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/configure b/configure
index d88c47c..90e013f 100755
--- a/configure
+++ b/configure
@@ -19854,7 +19854,7 @@ fi
# checks for headers
-for ac_header in regex.h strings.h sys/stat.h sys/wait.h unistd.h
+for ac_header in pcre2posix.h strings.h sys/stat.h sys/wait.h unistd.h
do :
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
@@ -20739,7 +20739,7 @@ if test "$cross_compiling" = yes; then :
$as_echo "$as_me: WARNING: result $ac_cv_func_realloc_0_nonnull guessed because of cross compilation" >&2;}
fi
-for ac_func in dup2 memset regcomp strcasecmp strchr strdup strtol
+for ac_func in dup2 memset strcasecmp strchr strdup strtol
do :
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"