diff --git a/FreeRTOS/Source/portable/esp8266/sdk_compat.c b/FreeRTOS/Source/portable/esp8266/sdk_compat.c index 9af3b4b..9691138 100644 --- a/FreeRTOS/Source/portable/esp8266/sdk_compat.c +++ b/FreeRTOS/Source/portable/esp8266/sdk_compat.c @@ -8,6 +8,11 @@ but that library has been removed. */ int errno; +/* newlib uses __errno in some contexts */ +int *__errno(void) { + return &errno; +} + /* libc memory management functions. Many of these are linked from the RTOS SDK blob libraries.