From efee987fb75fedd5db90d45c781e7132753c034c Mon Sep 17 00:00:00 2001 From: Christian Marangi Date: Sat, 22 Nov 2025 19:43:56 +0100 Subject: [PATCH] freeswitch: backport patch fixing compilation error for perl module Backport upstream patch fixing compilation error for perl module. Signed-off-by: Christian Marangi --- ...Fix-implicit-declaration-of-function.patch | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 net/freeswitch/patches/065-mod_perl-Fix-implicit-declaration-of-function.patch diff --git a/net/freeswitch/patches/065-mod_perl-Fix-implicit-declaration-of-function.patch b/net/freeswitch/patches/065-mod_perl-Fix-implicit-declaration-of-function.patch new file mode 100644 index 0000000..573b633 --- /dev/null +++ b/net/freeswitch/patches/065-mod_perl-Fix-implicit-declaration-of-function.patch @@ -0,0 +1,28 @@ +From 2c5171191aa7eab72e7f1bc42eebe94ec1a99c72 Mon Sep 17 00:00:00 2001 +From: Andrey Volk +Date: Sun, 13 Jul 2025 23:14:15 +0300 +Subject: [PATCH] [mod_perl] Fix implicit declaration of function + +--- + src/mod/languages/mod_perl/mod_perl.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +--- a/src/mod/languages/mod_perl/mod_perl.c ++++ b/src/mod/languages/mod_perl/mod_perl.c +@@ -45,6 +45,7 @@ + #include + #include + #include ++#include "mod_perl_extra.h" + static char *embedding[] = { "", "-e", "0", NULL }; + EXTERN_C void xs_init(pTHX); + +@@ -207,7 +208,7 @@ static perl_parse_and_execute(PerlInterp + + + +-static void perl_function(switch_core_session_t *session, char *data) ++static void perl_function(switch_core_session_t *session, const char *data) + { + char *uuid = switch_core_session_get_uuid(session); + PerlInterpreter *my_perl = clone_perl(); -- 2.30.2