From bad65d0c62ee527bbb839ab87b01abc0c874c8c9 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Fri, 29 Aug 2014 16:23:46 -0600 Subject: Various changes/fixes to get configs/stm32f4discovery/kostest working after the big configuration renaming (and after a long period of bit rot) --- nuttx/syscall/syscall_funclookup.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'nuttx/syscall') 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 ****************************************************************************/ -- cgit v1.2.3