summaryrefslogtreecommitdiff
path: root/src/kernel/ao_task.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2017-12-10 18:34:49 -0800
committerKeith Packard <keithp@keithp.com>2017-12-11 12:20:25 -0800
commit8ebecd364fd328e9c649c11729bddf58731aaafb (patch)
treeb388dbe788c78e04566e438ba797cf62f9fa93b2 /src/kernel/ao_task.h
parentb0de72d942eb87c5acd190878dd57ca4f812e8a1 (diff)
altos: Allow building with newlib + avr stdio on ARM
Redefines some stdio bits so that we can build with either pdclib or newlib + avr stdio. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/kernel/ao_task.h')
-rw-r--r--src/kernel/ao_task.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/kernel/ao_task.h b/src/kernel/ao_task.h
index 30b018ff..7549b598 100644
--- a/src/kernel/ao_task.h
+++ b/src/kernel/ao_task.h
@@ -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;