X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=boards%2Farduino%2Ftemplates%2Farduino_empty%2Fcfg%2Fcfg_lwip.h;h=73acb913534f4b4c33be90e72e0a8d99ea43e2db;hb=3e3d6d6bd05c91f80c49ea1b2f193e1835fddccb;hp=b6b55f65269d3df5bcc07c6073240abbb54a1d7c;hpb=19131a5ba427f686a90b1fa2be4311871ed5cbeb;p=bertos.git diff --git a/boards/arduino/templates/arduino_empty/cfg/cfg_lwip.h b/boards/arduino/templates/arduino_empty/cfg/cfg_lwip.h index b6b55f65..73acb913 100644 --- a/boards/arduino/templates/arduino_empty/cfg/cfg_lwip.h +++ b/boards/arduino/templates/arduino_empty/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.