From b8576dd5544611e9107eabe274df858fce4533c0 Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Tue, 26 May 2015 11:10:26 +1000 Subject: [PATCH] Fix errno --- FreeRTOS/Source/portable/esp8266/sdk_compat.c | 5 +++++ 1 file changed, 5 insertions(+) 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.