diff options
Diffstat (limited to 'newlib/libc/sys/linux/sys/errno.h')
-rw-r--r-- | newlib/libc/sys/linux/sys/errno.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/newlib/libc/sys/linux/sys/errno.h b/newlib/libc/sys/linux/sys/errno.h index b4b0f1614..aaf9d3624 100644 --- a/newlib/libc/sys/linux/sys/errno.h +++ b/newlib/libc/sys/linux/sys/errno.h @@ -23,6 +23,8 @@ extern __IMPORT int _sys_nerr; /* --- end of slight redundancy (the use of struct _reent->_errno is hard-coded in perror.c so why pretend anything else could work too ? */ +#define __set_errno(x) (errno = (x)) + #include <asm/errno.h> #define ENOTSUP EOPNOTSUPP |