From: Steve Peters Date: Wed, 23 Jan 2008 01:21:24 +0000 (+0000) Subject: Get C++ compiles going on Solaris again. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=1e4c78015ea350be480e09856d5495c02e337a33;p=p5sagit%2Fp5-mst-13.2.git Get C++ compiles going on Solaris again. p4raw-id: //depot/perl@33041 --- diff --git a/ext/IPC/SysV/SysV.xs b/ext/IPC/SysV/SysV.xs index ffa0b0e..fb1ec77 100644 --- a/ext/IPC/SysV/SysV.xs +++ b/ext/IPC/SysV/SysV.xs @@ -405,7 +405,11 @@ shmdt(addr) CODE: #ifdef HAS_SHM void *caddr = sv2addr(addr); +# ifdef __SUNPRO_CC + int rv = shmdt((char *)caddr); +# else int rv = shmdt(caddr); +# endif ST(0) = rv == -1 ? &PL_sv_undef : sv_2mortal(newSViv(rv)); XSRETURN(1); #else