aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/corosync/files
diff options
context:
space:
mode:
authorVladimir Sorokin <sorokin@altell.ru>2010-08-03 12:15:42 +0400
committerRoman I Khimov <khimov@altell.ru>2010-08-05 09:28:45 +0400
commit95fb07577f7cddc1686d7277f78da6222a596369 (patch)
tree99cd8227ab77e40bdfecdabf342ca4261dad5d3c /recipes/corosync/files
parent7fe3d2f8ac8af009170ea03d81b87a77c4898506 (diff)
downloadopenembedded-95fb07577f7cddc1686d7277f78da6222a596369.tar.gz
corosync: new version 1.2.7
* bugfix release, considered as safe upgrade Signed-off-by: Vladimir Sorokin <sorokin@altell.ru> Signed-off-by: Roman I Khimov <khimov@altell.ru>
Diffstat (limited to 'recipes/corosync/files')
-rw-r--r--recipes/corosync/files/fix-define-semun-union.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/recipes/corosync/files/fix-define-semun-union.patch b/recipes/corosync/files/fix-define-semun-union.patch
new file mode 100644
index 0000000000..7ce5ab6733
--- /dev/null
+++ b/recipes/corosync/files/fix-define-semun-union.patch
@@ -0,0 +1,22 @@
+diff -rupN corosync-1.2.7/lib/coroipcc.c corosync-1.2.7.new/lib/coroipcc.c
+--- corosync-1.2.7/lib/coroipcc.c 2010-07-22 03:13:42.000000000 +0400
++++ corosync-1.2.7.new/lib/coroipcc.c 2010-08-03 12:06:36.000000000 +0400
+@@ -68,6 +68,18 @@
+ #include <semaphore.h>
+ #else
+ #include <sys/sem.h>
++
++#if _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
++
+ #endif
+
+ #include "util.h"