mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Fix modperl to properly compile with perl 5.10.0
Thanks to bigpresh and kroimon for reporting this and testing the patch. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1239 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -984,8 +984,10 @@ EXTERN_C void boot_DynaLoader (pTHX_ CV* cv);
|
||||
bool CModPerl::OnLoad(const CString & sArgs, CString & sMessage)
|
||||
{
|
||||
int iArgc = 5;
|
||||
char * pArgv[] = { "", "-e", "0", "-T", "-w", NULL };
|
||||
char *p[] = { "", "-e", "0", "-T", "-w", NULL };
|
||||
char **pArgv = static_cast<char **>(p);
|
||||
PERL_SYS_INIT3( &iArgc, &pArgv, &environ );
|
||||
|
||||
m_pPerl = perl_alloc();
|
||||
perl_construct(m_pPerl);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user