File libosip2-3.5.0.dif of Package libosip2

Index: b/src/osip2/port_sema.c
===================================================================
--- a/src/osip2/port_sema.c
+++ b/src/osip2/port_sema.c
@@ -275,10 +275,20 @@ int osip_sem_trywait(struct osip_sem *_s
 }
 
 #elif defined (HAVE_SYS_SEM_H)
 /* support for semctl, semop, semget */
 
+#ifdef _SEM_SEMUN_UNDEFINED
+   union semun
+   {
+     int val;                           /* value for SETVAL */
+     struct semid_ds *buf;              /* buffer for IPC_STAT & IPC_SET */
+     unsigned short int *array;         /* array for GETALL & SETALL */
+     struct seminfo *__buf;             /* buffer for IPC_INFO */
+   };
+#endif
+
 #define SEM_PERM 0600
 
 struct osip_sem *osip_sem_init(unsigned int value)
 {
 	union semun val;