Get C++ compiles going on Solaris again.
Steve Peters [Wed, 23 Jan 2008 01:21:24 +0000 (01:21 +0000)]
p4raw-id: //depot/perl@33041

ext/IPC/SysV/SysV.xs

index ffa0b0e..fb1ec77 100644 (file)
@@ -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