Fix errno

This commit is contained in:
Angus Gratton 2015-05-26 11:10:26 +10:00
parent a6e8647114
commit b8576dd554

View file

@ -8,6 +8,11 @@
but that library has been removed. */ but that library has been removed. */
int errno; int errno;
/* newlib uses __errno in some contexts */
int *__errno(void) {
return &errno;
}
/* libc memory management functions. /* libc memory management functions.
Many of these are linked from the RTOS SDK blob libraries. Many of these are linked from the RTOS SDK blob libraries.