aboutsummaryrefslogtreecommitdiffstats
path: root/extras/mini-os/include/errno.h
diff options
context:
space:
mode:
Diffstat (limited to 'extras/mini-os/include/errno.h')
-rw-r--r--extras/mini-os/include/errno.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/extras/mini-os/include/errno.h b/extras/mini-os/include/errno.h
index 262ab3e0b4..2829420dd7 100644
--- a/extras/mini-os/include/errno.h
+++ b/extras/mini-os/include/errno.h
@@ -107,4 +107,11 @@
#define EOWNERDEAD 130 /* Owner died */
#define ENOTRECOVERABLE 131 /* State not recoverable */
+#ifdef HAVE_LIBC
+#include <sched.h>
+extern int errno;
+#define ERRNO
+#define errno (get_current()->reent._errno)
+#endif
+
#endif