summaryrefslogtreecommitdiffstats
path: root/aclocal
diff options
context:
space:
mode:
Diffstat (limited to 'aclocal')
-rw-r--r--aclocal/sysv-ipc.m48
1 files changed, 8 insertions, 0 deletions
diff --git a/aclocal/sysv-ipc.m4 b/aclocal/sysv-ipc.m4
index 0eb88b3dbc..396dcffbb7 100644
--- a/aclocal/sysv-ipc.m4
+++ b/aclocal/sysv-ipc.m4
@@ -27,7 +27,15 @@ AC_TRY_RUN([
#include <sys/ipc.h>
#include <sys/sem.h>
int main () {
+#if !defined(sun)
union semun arg ;
+#else
+ union semun {
+ int val;
+ struct semid_ds *buf;
+ ushort *array;
+ } arg;
+#endif
int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);
if (id == -1)
exit(1);