From 55963d0c9ab757264b21f28381a95a314ed10584 Mon Sep 17 00:00:00 2001 From: Alexander Alashkin <alexander.alashkin@cesanta.com> Date: Thu, 24 Nov 2016 14:05:17 +0100 Subject: [PATCH] Fix typo in platforms_esp PUBLISHED_FROM=b17ef5bc8ec801fca91c89af5f97767a55911952 --- examples/ESP8266_RTOS/Makefile | 2 +- mongoose.h | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/examples/ESP8266_RTOS/Makefile b/examples/ESP8266_RTOS/Makefile index 2d0b16a45..05752a442 100644 --- a/examples/ESP8266_RTOS/Makefile +++ b/examples/ESP8266_RTOS/Makefile @@ -15,7 +15,7 @@ TARGET = eagle #FLAVOR = release FLAVOR = debug -EXTRA_CCFLAGS += -Wall -Werror +EXTRA_CCFLAGS += -Wall -Werror -DRTOS_SDK ifndef PDIR # { GEN_IMAGES= eagle.app.v6.out diff --git a/mongoose.h b/mongoose.h index 405905ae1..e1dd584eb 100644 --- a/mongoose.h +++ b/mongoose.h @@ -475,7 +475,10 @@ typedef struct stat cs_stat_t; #define INT64_X_FMT PRIx64 #define __cdecl #define _FILE_OFFSET_BITS 32 -#define fineno(x) -1 + +#ifndef RTOS_SDK +#define fileno(x) -1 +#endif #define MG_LWIP 1 -- GitLab