summaryrefslogtreecommitdiffstats
path: root/firmware/libc/include/errno.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/libc/include/errno.h')
-rw-r--r--firmware/libc/include/errno.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/firmware/libc/include/errno.h b/firmware/libc/include/errno.h
index 6a24a1938f..9df261db9f 100644
--- a/firmware/libc/include/errno.h
+++ b/firmware/libc/include/errno.h
@@ -10,10 +10,12 @@
#ifndef _SYS_ERRNO_H_
+extern int * __errno(void);
+
#ifdef PLUGIN
-#define errno (*rb->__errno)
+#define errno (*rb->__errno())
#else
-extern int errno;
+#define errno (*__errno())
#endif
#define EPERM 1 /* Not super-user */