perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug MacEachern <do...@pobox.com>
Subject Re: Problem compiling mod_perl on Solaris: incompatible types in assignment in XS_Apache__Connection_remote_ip
Date Thu, 02 Mar 2000 23:44:15 GMT
On Wed, 1 Mar 2000, Artem Veremey wrote:

> Hi,
> I keep getting an error trying to compile mod_perl on Solaris x86:
> Connection.xs: In function `XS_Apache__Connection_remote_ip':
> Connection.xs:86: incompatible types in assignment

hmm, does this patch help?

--- src/modules/perl/Connection.xs	1999/10/06 17:43:41	1.6
+++ src/modules/perl/Connection.xs	2000/03/02 23:47:45
@@ -99,7 +99,7 @@
     RETVAL = conn->remote_ip;
  
     if(items > 1)
-         conn->remote_ip = pstrdup(conn->pool, (char *)SvPV(ST(1),na));
+         conn->remote_ip = (char *)pstrdup(conn->pool, (const char *)SvPV(ST(1),na));
 
     OUTPUT:
     RETVAL


Mime
View raw message