freeswitch-stable: backport pcre fix
[feed/telephony.git] / net / freeswitch-stable / patches / 350-fix-pcre-pointer-type.patch
1 --- a/src/switch_regex.c
2 +++ b/src/switch_regex.c
3 @@ -37,7 +37,7 @@ SWITCH_DECLARE(switch_regex_t *) switch_
4 int options, const char **errorptr, int *erroroffset, const unsigned char *tables)
5 {
6
7 - return pcre_compile(pattern, options, errorptr, erroroffset, tables);
8 + return (switch_regex_t *)pcre_compile(pattern, options, errorptr, erroroffset, tables);
9
10 }
11