diff options
Diffstat (limited to '')
-rw-r--r-- | aclocal.m4 | 10 | ||||
-rw-r--r-- | aclocal/sysv-ipc.m4 | 8 |
2 files changed, 17 insertions, 1 deletions
diff --git a/aclocal.m4 b/aclocal.m4 index feb6baec58..ee698ab873 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -461,7 +461,15 @@ AC_TRY_RUN([ #include <sys/ipc.h> #include <sys/sem.h> int main () { - union semun arg ; +#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); 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); |