Module: xenomai-forge
Branch: next
Commit: 61d96a1acba1915e646ec03b64f0d612aade565b
URL:    
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=61d96a1acba1915e646ec03b64f0d612aade565b

Author: Philippe Gerum <r...@xenomai.org>
Date:   Mon Jun 16 18:35:54 2014 +0200

demo/posix: can-rtt: fix Mercury build

---

 demo/posix/can-rtt.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/demo/posix/can-rtt.c b/demo/posix/can-rtt.c
index d1e49f0..62298fc 100644
--- a/demo/posix/can-rtt.c
+++ b/demo/posix/can-rtt.c
@@ -49,7 +49,7 @@
 #include <sys/ioctl.h>
 #include <sys/mman.h>
 
-#ifdef __XENO__
+#ifdef CONFIG_XENO_COBALT
 #include <rtdm/can.h>
 #else
 #include <linux/can.h>
@@ -101,7 +101,7 @@ static void *transmitter(void *arg)
     frame.can_id = can_id;
     frame.can_dlc = sizeof(*rtt_time);
 
-#ifdef __XENO__
+#ifdef CONFIG_XENO_COBALT
     pthread_set_name_np(pthread_self(), "rtcan_rtt_transmitter");
 #endif
     pthread_setschedparam(pthread_self(), SCHED_FIFO, &param);
@@ -147,7 +147,7 @@ static void *receiver(void *arg)
     struct rtt_stat rtt_stat = {0, 1000000000000000000LL, 
-1000000000000000000LL,
                                0, 0, 0};
 
-#ifdef __XENO__
+#ifdef CONFIG_XENO_COBALT
     pthread_set_name_np(pthread_self(), "rtcan_rtt_receiver");
 #endif
     pthread_setschedparam(pthread_self(), SCHED_FIFO, &param);


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to