summaryrefslogtreecommitdiff
path: root/doio.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-03-11 09:45:10 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-03-11 09:45:10 +0000
commite6f0bdd6fa05a6e9d3d4ecdbe97bd8dd3feaa022 (patch)
treef7bb6b8ad7b19139cfd447f586d90cbca7e438c0 /doio.c
parent2ae617dd55ff4831f54fe6e69b42bd51fb33548e (diff)
downloadperl-e6f0bdd6fa05a6e9d3d4ecdbe97bd8dd3feaa022.tar.gz
tweaks for lynxos build (from Ed Mooring <mooring@lynx.com>)
p4raw-id: //depot/perl@5642
Diffstat (limited to 'doio.c')
-rw-r--r--doio.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/doio.c b/doio.c
index 5c86537e8f..e22902f23a 100644
--- a/doio.c
+++ b/doio.c
@@ -1794,8 +1794,11 @@ Perl_do_ipcctl(pTHX_ I32 optype, SV **mark, SV **sp)
{
struct semid_ds semds;
union semun semun;
-
+#ifdef EXTRA_F_IN_SEMUN_BUF
+ semun.buff = &semds;
+#else
semun.buf = &semds;
+#endif
getinfo = (cmd == GETALL);
if (Semctl(id, 0, IPC_STAT, semun) == -1)
return -1;
@@ -1850,7 +1853,11 @@ Perl_do_ipcctl(pTHX_ I32 optype, SV **mark, SV **sp)
#ifdef Semctl
union semun unsemds;
+#ifdef EXTRA_F_IN_SEMUN_BUF
+ unsemds.buff = (struct semid_ds *)a;
+#else
unsemds.buf = (struct semid_ds *)a;
+#endif
ret = Semctl(id, n, cmd, unsemds);
#else
Perl_croak(aTHX_ "%s not implemented", PL_op_desc[optype]);