File libosip2-2.2.0.dif of Package libosip2

--- Makefile.am
+++ Makefile.am
@@ -1,4 +1,5 @@
 EXTRA_DIST = README BUGS FEATURES HISTORY autogen.sh libosip2.pc.in
+ACLOCAL_FLAGS = -I scripts
 
 SUBDIRS = include src scripts help platform debian
 
--- src/osip2/port_sema.c
+++ src/osip2/port_sema.c
@@ -128,6 +128,16 @@
 #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 *
openSUSE Build Service is sponsored by