diff options
Diffstat (limited to 'ext/IPC/SysV/SysV.xs')
-rw-r--r-- | ext/IPC/SysV/SysV.xs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/IPC/SysV/SysV.xs b/ext/IPC/SysV/SysV.xs index ffa0b0e88f..fb1ec775ff 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 |