X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=boards%2Ftriface%2Fbenchmark%2Ftriface_context_switch%2Fcfg%2Fcfg_lwip.h;h=73acb913534f4b4c33be90e72e0a8d99ea43e2db;hb=5da4f300ba34aa4457914b28fc6be3452eac1ddb;hp=b6b55f65269d3df5bcc07c6073240abbb54a1d7c;hpb=ffd90a8e0d552a62ae93a03594a245b1e1b51bc3;p=bertos.git diff --git a/boards/triface/benchmark/triface_context_switch/cfg/cfg_lwip.h b/boards/triface/benchmark/triface_context_switch/cfg/cfg_lwip.h index b6b55f65..73acb913 100644 --- a/boards/triface/benchmark/triface_context_switch/cfg/cfg_lwip.h +++ b/boards/triface/benchmark/triface_context_switch/cfg/cfg_lwip.h @@ -1206,6 +1206,13 @@ * $WIZ$ type = "boolean" */ #define LWIP_SOCKET 1 +#if LWIP_SOCKET + /* + * The sockets.c file requires this macro to be defined to really + * set errno on errors. + */ + #define ERRNO +#endif /** * Enable BSD-style sockets functions names.