From 48d22438456b14248c02fca84b732c69b9ac43e7 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Tue, 31 Jan 2017 12:38:53 +0100 Subject: [PATCH] Clarify/add LWIP_PROVIDE_ERRNO comments --- doc/sys_arch.txt | 5 +++-- src/include/lwip/opt.h | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/doc/sys_arch.txt b/doc/sys_arch.txt index 4dc727b6..4fdeb2ac 100644 --- a/doc/sys_arch.txt +++ b/doc/sys_arch.txt @@ -282,8 +282,9 @@ cc.h - Architecture environment, some compiler specific, some definition of it, or include a file which defines it. This file must either include a system-local which defines - the standard *nix error codes, or it should #define LWIP_PROVIDE_ERRNO - to make lwip/arch.h define the codes which are used throughout. + the standard *nix error codes (or define LWIP_ERRNO_INCLUDE to that file name), + or it should #define LWIP_PROVIDE_ERRNO to make lwip/arch.h define the codes + which are used throughout. perf.h - Architecture specific performance measurement. diff --git a/src/include/lwip/opt.h b/src/include/lwip/opt.h index 0ca2dd01..fd779c67 100644 --- a/src/include/lwip/opt.h +++ b/src/include/lwip/opt.h @@ -1751,7 +1751,9 @@ #define LWIP_SOCKET_SET_ERRNO 1 #endif -/** LWIP_PROVIDE_ERRNO==1: Let lwIP provide ERRNO values. +/** LWIP_PROVIDE_ERRNO==1: Let lwIP provide ERRNO values and the 'errno' variable. + * If this is disabled, cc.h must either define 'errno', include or + * define LWIP_ERRNO_INCLUDE to or equivalent. */ #if !defined LWIP_PROVIDE_ERRNO || defined __DOXYGEN__ #define LWIP_PROVIDE_ERRNO 0