From: Mike Jerris Date: Thu, 29 Mar 2018 15:17:44 +0000 (-0400) Subject: FS-11061: [core] fix build with newer pcre X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fheads%2Fv1.6;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 0531491aaf..0435115ac3 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); }