[Bug 435] make check fails for rtai 3.3

For more infomation about this bug, visit

Peter Soetens
<peter [dot] soetens [..] ...> changed:

What |Removed |Added
--------------------------------------------------------------------------
Version|rtt-trunk |1.2.1
Status|NEW |ASSIGNED
CC| |peter [dot] soetens [..] ...,
| |orocos-
| |dev [..] ...
Summary|make check fails |make check fails for rtai
| |3.3
Status|ASSIGNED |RESOLVED
Resolution| |FIXED

--- Comment #3 from Peter Soetens
<peter [dot] soetens [..] ...> 2007-08-03 19:14:43 ---
This bug was introduced in RTT 1.2.1, when I fixed bug #360. A regression.

--- Comment #4 from Peter Soetens
<peter [dot] soetens [..] ...> 2007-08-03 19:22:58 ---
$ svn diff src/os/lxrt/fosi.h src/os/lxrt/fosi.c
Index: src/os/lxrt/fosi.h
===================================================================
--- src/os/lxrt/fosi.h (revision 28469)
+++ src/os/lxrt/fosi.h (working copy)
@@ -242,6 +242,8 @@
#if defined(CONFIG_RTAI_VERSION_MINOR) && defined(CONFIG_RTAI_VERSION_MAJOR)
# if CONFIG_RTAI_VERSION_MAJOR == 3 && CONFIG_RTAI_VERSION_MINOR > 3
return (ret == RTE_TIMOUT) ? -1 : 0;
+# else
+ return (ret == SEM_TIMOUT) ? -1 : 0;
# endif
#else
return (ret == SEM_TIMOUT) ? -1 : 0;
Index: src/os/lxrt/fosi.c
===================================================================
--- src/os/lxrt/fosi.c (revision 28469)
+++ src/os/lxrt/fosi.c (working copy)
@@ -133,6 +133,8 @@
#if defined(CONFIG_RTAI_VERSION_MINOR) && defined(CONFIG_RTAI_VERSION_MAJOR)
# if CONFIG_RTAI_VERSION_MAJOR == 3 && CONFIG_RTAI_VERSION_MINOR > 3
return (ret == RTE_TIMOUT) ? -1 : 0;
+# else
+ return (ret == SEM_TIMOUT) ? -1 : 0;
# endif
#else
return (ret == SEM_TIMOUT) ? -1 : 0;
sspr@lt00129:~/src/Orocos/trunk/rtt
$ svn ci src/os/lxrt/fosi.c src/os/lxrt/fosi.h -m"Fix for bug #435: make check
fails for rtai 3.3:
Fix regression caused bug fix for bug #360.
"
Sending src/os/lxrt/fosi.c
Sending src/os/lxrt/fosi.h
Transmitting file data ..
Committed revision 28471.

--
Configure bugmail: https://svn.fmtc.be/bugzilla/orocos/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
You are the assignee for the bug.
--
Orocos-Dev mailing list
Orocos-Dev [..] ...
http://lists.mech.kuleuven.be/mailman/listinfo/orocos-dev

Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm