diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-08-29 16:23:46 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-08-29 16:23:46 -0600 |
commit | bad65d0c62ee527bbb839ab87b01abc0c874c8c9 (patch) | |
tree | c6316029e8e2a7b27422a2a8bbf10ccfb26aadd3 /nuttx/syscall | |
parent | c7153c08bd9b6ebce31e6dbeb835b01aee4fabbb (diff) | |
download | px4-nuttx-bad65d0c62ee527bbb839ab87b01abc0c874c8c9.tar.gz px4-nuttx-bad65d0c62ee527bbb839ab87b01abc0c874c8c9.tar.bz2 px4-nuttx-bad65d0c62ee527bbb839ab87b01abc0c874c8c9.zip |
Various changes/fixes to get configs/stm32f4discovery/kostest working after the big configuration renaming (and after a long period of bit rot)
Diffstat (limited to 'nuttx/syscall')
-rw-r--r-- | nuttx/syscall/syscall_funclookup.c | 17 |
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 ****************************************************************************/ |