projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c297d53
)
Get C++ compiles going on Solaris again.
author
Steve Peters
<steve@fisharerojo.org>
Wed, 23 Jan 2008 01:21:24 +0000
(
01:21
+0000)
committer
Steve Peters
<steve@fisharerojo.org>
Wed, 23 Jan 2008 01:21:24 +0000
(
01:21
+0000)
p4raw-id: //depot/perl@33041
ext/IPC/SysV/SysV.xs
patch
|
blob
|
history
diff --git
a/ext/IPC/SysV/SysV.xs
b/ext/IPC/SysV/SysV.xs
index
ffa0b0e
..
fb1ec77
100644
(file)
--- 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