From: Mike Jerris Date: Thu, 29 Mar 2018 15:17:44 +0000 (-0400) Subject: FS-11061: [core] fix build with newer pcre X-Git-Tag: v1.8.1~3^2~235 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=930e7f3b0e6088c7dbf7a27dcb9d6381d87055b4;p=thirdparty%2Ffreeswitch.git FS-11061: [core] fix build with newer pcre --- 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); }