]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[mod_perl] Fix implicit declaration of function 2850/head
authorAndrey Volk <andywolk@gmail.com>
Sun, 13 Jul 2025 20:14:15 +0000 (23:14 +0300)
committerAndrey Volk <andywolk@gmail.com>
Mon, 14 Jul 2025 10:41:48 +0000 (13:41 +0300)
src/mod/languages/mod_perl/mod_perl.c

index 01795fafbb99f6b704e84d59d596bbd308a13866..0582045fbab828469af78d57de69ba7035f09df1 100644 (file)
@@ -45,6 +45,7 @@
 #include <EXTERN.h>
 #include <perl.h>
 #include <switch.h>
+#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(PerlInterpreter * my_perl, char *input_code, char
 
 
 
-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();