From 930e7f3b0e6088c7dbf7a27dcb9d6381d87055b4 Mon Sep 17 00:00:00 2001 From: Mike Jerris Date: Thu, 29 Mar 2018 11:17:44 -0400 Subject: [PATCH] FS-11061: [core] fix build with newer pcre --- src/switch_regex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switch_regex.c b/src/switch_regex.c index 911796a4b7..5a82e21752 100644 --- a/src/switch_regex.c +++ b/src/switch_regex.c @@ -37,7 +37,7 @@ SWITCH_DECLARE(switch_regex_t *) switch_regex_compile(const char *pattern, int options, const char **errorptr, int *erroroffset, const unsigned char *tables) { - return pcre_compile(pattern, options, errorptr, erroroffset, tables); + return (switch_regex_t *)pcre_compile(pattern, options, errorptr, erroroffset, tables); }