summaryrefslogtreecommitdiff
path: root/doio.c
diff options
context:
space:
mode:
Diffstat (limited to 'doio.c')
-rw-r--r--doio.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/doio.c b/doio.c
index 8373d09368..00e2e75885 100644
--- a/doio.c
+++ b/doio.c
@@ -1366,17 +1366,17 @@ SV **sp;
{
struct semid_ds semds;
#ifdef __linux__ /* XXX Need metaconfig test */
-/* linux uses :
- int semctl (int semid, int semnun, int cmd, union semun arg)
-
+/* linux (and Solaris2?) uses :
+ int semctl (int semid, int semnum, int cmd, union semun arg)
union semun {
int val;
struct semid_ds *buf;
ushort *array;
};
*/
- unsemds.buf = &semds;
- if (semctl(id, 0, IPC_STAT, unsemds) == -1)
+ union semun semun;
+ semun.buf = &semds;
+ if (semctl(id, 0, IPC_STAT, semun) == -1)
#else
if (semctl(id, 0, IPC_STAT, &semds) == -1)
#endif