altos: Allow building with newlib + avr stdio on ARM
[fw/altos] / src / kernel / ao_task.h
index 30b018ffe36aff064afb91b0a8fe1c41e1a20483..7549b59838d6abbc4c85a22e5b42ae4ce7e9449e 100644 (file)
@@ -44,6 +44,9 @@ struct ao_task {
        ao_arch_task_members            /* any architecture-specific fields */
        uint8_t task_id;                /* unique id */
        __code char *name;              /* task name */
+#ifdef NEWLIB
+       int __errno;                    /* storage for errno in newlib libc */
+#endif
 #if HAS_TASK_QUEUE
        struct ao_list  queue;
        struct ao_list  alarm_queue;