diff options
Diffstat (limited to '')
-rw-r--r-- | aclocal.m4 | 10 |
1 files changed, 9 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); |