httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Schaefer <joe+apa...@sunstarsys.com>
Subject Re: bleedperl problems
Date Wed, 13 Jun 2001 21:00:17 GMT
Doug MacEachern <dougm@covalent.net> writes:

> On 12 Jun 2001, Joe Schaefer wrote:
>  
> > On a peripheral note- today I've been trying to get modperl to build 
> > against perl 5.6.1 w/SFIO *and* ithreads- but my compiler is griping
> > about
> > 
> > perlio.c: In function `sfapachewrite':
> > perlio.c:109: warning: passing arg 1 of pointer to function from incompatible pointer
type
> 
> this patch should fix, i don't have sfio handy to test tho..
> 
> --- src/modules/perl/perlio.c   2000/08/15 19:36:34     1.6
> +++ src/modules/perl/perlio.c   2001/06/13 20:34:31
> @@ -106,7 +106,7 @@
>      XPUSHs(perl_bless_request_rec(((Apache_t*)disc)->r));
>      XPUSHs(sv_2mortal(newSVpv(buffer,n)));
>      PUTBACK;
> -    (void)(*CvXSUB(cv))(cv); 
> +    (void)(*CvXSUB(cv))(aTHXo_ cv); 
>      FREETMPS;
>      LEAVE;
>      return n;


That does the trick. Everything tests cleanly- even libapreq!
For amusement, I should point out that I tried that fix (and a few
dozen other THX variants) myself before posting, but was editing 
perlio.c inside my modperl source tree instead of apache's.

Oopsie :-)

-- 
Joe Schaefer


Mime
View raw message