Hi,

this patch allows to compile the fusion posix skin again. It was broken due to adding bleeding mq-stuff to the userspace library. Please cross-check, I haven't tested it as well, I just compiled it.

Jan
Index: lib/mq.c
===================================================================
RCS file: /cvs/rtai/fusion/skins/posix/lib/mq.c,v
retrieving revision 1.1
diff -u -p -r1.1 mq.c
--- lib/mq.c    26 Jun 2005 17:26:13 -0000      1.1
+++ lib/mq.c    28 Jun 2005 07:39:38 -0000
@@ -17,12 +17,14 @@
  */
 
 #include <errno.h>
+#include <stdarg.h>
 #include <posix/syscall.h>
 #include <posix/lib/pthread.h>
+#include <posix/lib/mqueue.h>
 
 extern int __pse51_muxid;
 
-mqd_t __wrap_mq_open (cont char *name,
+mqd_t __wrap_mq_open (const char *name,
                      int oflags,
                      ...)
 {
@@ -70,7 +72,7 @@ int __wrap_mq_close (mqd_t q)
     return -1;
 }
 
-int __wrap_mq_unlink (cont char *name)
+int __wrap_mq_unlink (const char *name)
 {
     int err;
 
@@ -170,7 +172,7 @@ ssize_t __wrap_mq_receive (mqd_t q,
                           size_t len,
                           unsigned *prio)
 {
-    ssize_t len;
+    int err;
 
     err = XENOMAI_SKINCALL4(__pse51_muxid,
                            __pse51_mq_receive,
@@ -190,9 +192,9 @@ ssize_t __wrap_mq_timedreceive (mqd_t q,
                                char *__restrict__ buffer,
                                size_t len,
                                unsigned *__restrict__ prio,
-                               const struct timespec *__restrict__ timeout);
+                               const struct timespec *__restrict__ timeout)
 {
-    ssize_t len;
+    int err;
 
     err = XENOMAI_SKINCALL5(__pse51_muxid,
                            __pse51_mq_timedreceive,

Reply via email to