Fix perl compile test, char **env was missing from main, it doesn't fail

on gcc 4.2.1 but it does with 4.3.2 (which may or not be the issues) in
any case it's correct to pass it.

Originally committed to SVN as r2681.
This commit is contained in:
Amar Takhar 2009-01-08 17:01:24 +00:00
parent 9dff0f15d1
commit 811505ee83
1 changed files with 1 additions and 1 deletions

View File

@ -806,7 +806,7 @@ if test "$with_perl" != "no"; then
AC_AGI_COMPILE([Perl], [perl], [$PERL_CFLAGS], [$PERL_LDFLAGS],[ AC_AGI_COMPILE([Perl], [perl], [$PERL_CFLAGS], [$PERL_LDFLAGS],[
#include <EXTERN.h> #include <EXTERN.h>
#include <perl.h> #include <perl.h>
int main(int argc, char **argv) { int main(int argc, char **argv, char **env) {
static PerlInterpreter *my_perl; static PerlInterpreter *my_perl;
PERL_SYS_INIT3(&argc,&argv,&env); PERL_SYS_INIT3(&argc,&argv,&env);
my_perl = perl_alloc(); my_perl = perl_alloc();