aboutsummaryrefslogtreecommitdiffstats
path: root/os
diff options
context:
space:
mode:
Diffstat (limited to 'os')
-rw-r--r--os/various/syscalls.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/os/various/syscalls.c b/os/various/syscalls.c
index fd2449b40..60b61c9a3 100644
--- a/os/various/syscalls.c
+++ b/os/various/syscalls.c
@@ -65,6 +65,11 @@
#include "hal.h"
#endif
+#ifndef __errno_r
+#include <sys/reent.h>
+#define __errno_r(reent) reent->_errno
+#endif
+
/***************************************************************************/
int _read_r(struct _reent *r, int file, char * ptr, int len)