summaryrefslogtreecommitdiff
path: root/nuttx/syscall
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/syscall')
-rw-r--r--nuttx/syscall/syscall_funclookup.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/nuttx/syscall/syscall_funclookup.c b/nuttx/syscall/syscall_funclookup.c
index 6f38634ac..43e411fc3 100644
--- a/nuttx/syscall/syscall_funclookup.c
+++ b/nuttx/syscall/syscall_funclookup.c
@@ -90,9 +90,24 @@
uint32_t syscall_clock_systimer(void);
/****************************************************************************
- * Pre-processor definitions
+ * Pre-processor Definitions
****************************************************************************/
+/* Errno access is awkward. We need to generate get_errno() and set_errno()
+ * interfaces to support the system calls, even though we don't use them
+ * ourself.
+ *
+ * The "normal" protoypes for these functions is in errno.h. The following
+ * must agree exactly.
+ */
+
+#ifdef __DIRECT_ERRNO_ACCESS
+# undef set_errno
+# undef get_errno
+void set_errno(int errcode);
+int get_errno(void);
+#endif
+
/****************************************************************************
* Public Data
****************************************************************************/