summaryrefslogtreecommitdiffstats
path: root/c/src/exec/itron/include/rtems/itron/task.h
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/exec/itron/include/rtems/itron/task.h')
-rw-r--r--c/src/exec/itron/include/rtems/itron/task.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/c/src/exec/itron/include/rtems/itron/task.h b/c/src/exec/itron/include/rtems/itron/task.h
index fffcc16d82..5d52d632f5 100644
--- a/c/src/exec/itron/include/rtems/itron/task.h
+++ b/c/src/exec/itron/include/rtems/itron/task.h
@@ -77,7 +77,18 @@ ER _ITRON_Delete_task(
Thread_Control *the_thread
);
+/* XXX remove the need for this. Enable dispatch should not be hidden */
+
+#define _ITRON_return_errorno( _errno ) \
+do { \
+ _Thread_Enable_dispatch(); \
+ return _errno; \
+} while (0);
+
+
+#ifndef __RTEMS_APPLICATION__
#include <rtems/itron/task.inl>
+#endif
#ifdef __cplusplus
}