Hi,

the attached patch fixes this issue.

Best regards
Martin G. Loschwitz

-- 
: Martin Gerhard Loschwitz
: LINBIT | Your Way to High Availability
: Tel: +43-1-8178292-63, Fax: +43-1-8178292-82
:
: http://www.linbit.com
diff -ruN corosync-1.3.0.old/lib/coroipcc.c corosync-1.3.0/lib/coroipcc.c
--- corosync-1.3.0.old/lib/coroipcc.c   2010-12-01 13:50:27.000000000 +0000
+++ corosync-1.3.0/lib/coroipcc.c       2011-05-02 12:57:47.000000000 +0000
@@ -572,6 +572,15 @@
        struct ipc_instance *ipc_instance;
 #if _POSIX_THREAD_PROCESS_SHARED < 1
        key_t semkey = 0;
+#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
+        union semun
+        {
+                int val;
+                struct semid_ds *buf;
+                unsigned short int *array;
+                struct seminfo *__buf;
+        };
+#endif
        union semun semun;
 #endif
        int sys_res;

Reply via email to