updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / cgi-speedycgi / perl5-compile-fix.patch
blob8bea98f2714810694a25d41a8523875ff5d12e8a
1 diff -crB CGI-SpeedyCGI-2.22-unpatched//Makefile.PL CGI-SpeedyCGI-2.22-patched//Makefile.PL
2 *** CGI-SpeedyCGI-2.22-unpatched//Makefile.PL 2011-03-09 18:28:18.665423958 +0200
3 --- CGI-SpeedyCGI-2.22/Makefile.PL 2011-03-09 18:30:25.644020175 +0200
4 ***************
5 *** 6,33 ****
6 import SpeedyMake qw(%write_makefile_common);
9 - print <<END;
11 - Optional mod_speedycgi support.
13 - Mod_speedycgi increases performance under Apache by avoiding the fork/exec
14 - overhead associated with each request under normal SpeedyCGI. However, it
15 - requires a working copy of "apxs" in your path, Apache with mod_so
16 - support, and additional Apache configuration.
18 - END
19 - print "Compile mod_speedycgi (default no)? ";
21 my @dirs = qw(src speedy_backend speedy);
22 my $macro = $write_makefile_common{macro};
23 my $apache_module = 0;
24 - if (<STDIN> =~ /y/i) {
25 - die "ERROR: Command 'apxs -q CC' failed.\n"
26 - unless $macro->{APACHE_APXS_WORKS};
27 - print "Compiling for Apache version $macro->{APACHE_VERSION}\n";
28 - push(@dirs, $macro->{MOD_SPEEDYCGI_DIR});
29 - $apache_module = 1;
30 - }
32 WriteMakefile(
33 NAME => 'CGI::SpeedyCGI',
34 --- 6,14 ----
35 diff -crB CGI-SpeedyCGI-2.22-unpatched//src/speedy_backend_main.h CGI-SpeedyCGI-2.22-patched//src/speedy_backend_main.h
36 *** CGI-SpeedyCGI-2.22-unpatched//src/speedy_backend_main.h 2011-03-09 18:28:18.722089998 +0200
37 --- CGI-SpeedyCGI-2.22/src/speedy_backend_main.h 2011-03-09 18:28:43.578481719 +0200
38 ***************
39 *** 38,44 ****
41 #else
43 ! #define speedy_new(s,n,t) New(123,s,n,t)
44 #define speedy_renew Renew
45 #define speedy_free Safefree
47 --- 38,44 ----
49 #else
51 ! #define speedy_new(s,n,t) Newx(s,n,t)
52 #define speedy_renew Renew
53 #define speedy_free Safefree